Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Improve Announce Command
Browse files Browse the repository at this point in the history
Thanks to Morphan1.
  • Loading branch information
Xenmai committed Sep 28, 2017
1 parent b88ec90 commit afb7066
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -57,9 +57,7 @@ public void execute(CommandQueue queue, CommandEntry entry) {
else {
text = Denizen2Sponge.parseColor(message.toString());
}
for (Player player : Sponge.getServer().getOnlinePlayers()) {
player.sendMessage(text);
}
Sponge.getServer().getBroadcastChannel().send(text);
if (queue.shouldShowGood()) {
queue.outGood("Announcing to all players: " + ColorSet.emphasis + message.debug());
}
Expand Down

0 comments on commit afb7066

Please sign in to comment.