diff options
author | feildmaster <admin@feildmaster.com> | 2012-08-06 11:29:38 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-08-06 11:29:38 -0500 |
commit | 9835a9868fdf5553207698a18331fa3ca0c8f3a5 (patch) | |
tree | 00bb328d302c5bff43f1d3c339e013d289c85862 /src/main/java | |
parent | 61d302c2324abb6d60b43ace7631cb3974630e78 (diff) | |
download | bukkit-9835a9868fdf5553207698a18331fa3ca0c8f3a5.tar bukkit-9835a9868fdf5553207698a18331fa3ca0c8f3a5.tar.gz bukkit-9835a9868fdf5553207698a18331fa3ca0c8f3a5.tar.lz bukkit-9835a9868fdf5553207698a18331fa3ca0c8f3a5.tar.xz bukkit-9835a9868fdf5553207698a18331fa3ca0c8f3a5.zip |
Don't send duplicate messages for Gamemode and Time commands.
Gamemode gets sent with the packet.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/GameModeCommand.java | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/command/defaults/TimeCommand.java | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/GameModeCommand.java b/src/main/java/org/bukkit/command/defaults/GameModeCommand.java index 087363a0..08e5a90a 100644 --- a/src/main/java/org/bukkit/command/defaults/GameModeCommand.java +++ b/src/main/java/org/bukkit/command/defaults/GameModeCommand.java @@ -62,8 +62,6 @@ public class GameModeCommand extends VanillaCommand { } else { Command.broadcastCommandMessage(sender, "Set " + player.getName() + "'s game mode to" + mode.toString() + " mode", false); } - - player.sendMessage("Your game mode has been changed"); } } else { sender.sendMessage(player.getName() + " already has game mode " + mode.getValue()); diff --git a/src/main/java/org/bukkit/command/defaults/TimeCommand.java b/src/main/java/org/bukkit/command/defaults/TimeCommand.java index 9cc160ec..9866877d 100644 --- a/src/main/java/org/bukkit/command/defaults/TimeCommand.java +++ b/src/main/java/org/bukkit/command/defaults/TimeCommand.java @@ -42,7 +42,6 @@ public class TimeCommand extends VanillaCommand { } Command.broadcastCommandMessage(sender, "Set time to " + value); - sender.sendMessage("Set time to " + value); } else if (args[0].equals("add")) { if (!sender.hasPermission("bukkit.command.time.add")) { sender.sendMessage(ChatColor.RED + "You don't have permission to set the time"); @@ -56,7 +55,6 @@ public class TimeCommand extends VanillaCommand { } Command.broadcastCommandMessage(sender, "Added " + value + " to time"); - sender.sendMessage("Added " + value + " to time"); } else { sender.sendMessage("Unknown method. Usage: " + usageMessage); } |