mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
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:
parent
3d3c769de0
commit
32052e63e2
2 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue