mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Fixed GameModeCommand and GiveCommand error/response display.
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@ public class GameModeCommand extends VanillaCommand {
|
|||||||
|
|
||||||
player.setGameMode(mode);
|
player.setGameMode(mode);
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(player.getName() + " already has game mode" + mode.getValue());
|
sender.sendMessage(player.getName() + " already has game mode " + mode.getValue());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage("There is no game mode with id " + args[1]);
|
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]);
|
Material material = Material.matchMaterial(args[1]);
|
||||||
|
|
||||||
if (material != null) {
|
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;
|
int amount = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user