diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-08-25 00:23:03 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-08-25 00:23:03 -0600 |
commit | 90bf30acfe869e17cf4209465f67cd70919c63b0 (patch) | |
tree | 099300dd7eaee5b30c8c0c7bee1ff3843150345e /src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | |
parent | 9764af18a7bd1e9c9564993bccf7826e565ec7c7 (diff) | |
download | resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar.gz resurrection-90bf30acfe869e17cf4209465f67cd70919c63b0.tar.bz2 |
did some cleanup for transtioning out of beta
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands/CommandResurrect.java')
-rw-r--r-- | src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java index b573349..45ed156 100644 --- a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java +++ b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java @@ -21,7 +21,7 @@ public class CommandResurrect implements CommandExecutor { if (valid) { Player resurrectPlayer = Bukkit.getPlayer(strings[0]); if (resurrectPlayer == null) { - p.sendMessage(ChatColor.RED + "That player does not exist! Failed to resurrect."); + p.sendMessage(ChatColor.RED + "ERROR: That player is not online/doesn't exist! Failed to resurrect."); return false; } if (resurrectPlayer.getGameMode() == GameMode.SPECTATOR) { @@ -38,19 +38,18 @@ public class CommandResurrect implements CommandExecutor { } return true; } else { - p.sendMessage(ChatColor.RED + strings[0] + " is not dead! Failed to resurrect."); + p.sendMessage(ChatColor.RED + "ERROR: " + strings[0] + " is not dead! Failed to resurrect."); return false; } } else { - System.out.println(ChatColor.RED + "Too few arguments!"); - System.out.println(ChatColor.RED + "Usage: /resurrect PLAYER"); + System.out.println(ChatColor.RED + "ERROR: Too few arguments!"); return false; } } else { if (valid) { Player resurrectPlayer = Bukkit.getPlayer(strings[0]); if (resurrectPlayer == null) { - System.out.println("That player does not exist! Failed to resurrect."); + System.out.println("[Resurrection] That player is not online/doesn't exist! Failed to resurrect."); return false; } if (resurrectPlayer.getGameMode() == GameMode.SPECTATOR) { @@ -67,12 +66,11 @@ public class CommandResurrect implements CommandExecutor { } return true; } else { - System.out.println(strings[0] + " is not dead! Failed to resurrect."); + System.out.println("[Resurrection] " + strings[0] + " is not dead! Failed to resurrect."); return false; } } else { - System.out.println("Too few arguments!"); - System.out.println("Usage: /resurrect PLAYER"); + System.out.println("[Resurrection] ERROR: Too few arguments!"); return false; } } |