mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
Fixed GameModeCommand and GiveCommand error/response display.
This commit is contained in:
parent
0c4ae4dddd
commit
233409ed7c
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ public class GameModeCommand extends VanillaCommand {
|
|||
|
||||
player.setGameMode(mode);
|
||||
} else {
|
||||
sender.sendMessage(player.getName() + " already has game mode" + mode.getValue());
|
||||
sender.sendMessage(player.getName() + " already has game mode " + mode.getValue());
|
||||
}
|
||||
} else {
|
||||
sender.sendMessage("There is no game mode with id " + args[1]);
|
||||
|
|
|
@ -30,7 +30,7 @@ public class GiveCommand extends VanillaCommand {
|
|||
Material material = Material.matchMaterial(args[1]);
|
||||
|
||||
if (material != null) {
|
||||
Command.broadcastCommandMessage(sender, "Giving " + player.getName() + " some " + material.getId() + "(" + material + ")");
|
||||
Command.broadcastCommandMessage(sender, "Giving " + player.getName() + " some " + material.getId() + " (" + material + ")");
|
||||
|
||||
int amount = 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue