Don't send duplicate messages for Gamemode and Time commands.

Gamemode gets sent with the packet.

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot 2012-08-06 11:29:38 -05:00
parent 3d3c769de0
commit 32052e63e2
2 changed files with 0 additions and 4 deletions

View File

@ -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());

View File

@ -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);
}