From 90bf30acfe869e17cf4209465f67cd70919c63b0 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Wed, 25 Aug 2021 00:23:03 -0600 Subject: did some cleanup for transtioning out of beta --- .../Resurrection/commands/CommandResurrect.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/net/brysonsteck/Resurrection/commands/CommandResurrect.java') 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; } } -- cgit v1.2.3