Don't send duplicate messages for Gamemode and Time commands.
Gamemode gets sent with the packet.
This commit is contained in:
parent
61d302c232
commit
9835a9868f
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user