diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-06-15 20:15:51 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-06-15 20:15:51 -0600 |
commit | a49057361f0e37f90de5f50f7172f04b0a2d389e (patch) | |
tree | 65daa65a0be631c708b5f485d0e34b8efd2fb9cb /src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | |
parent | 9342bf9c0a1ae27fc6d1b4c886caf37e31708508 (diff) | |
download | resurrection-a49057361f0e37f90de5f50f7172f04b0a2d389e.tar resurrection-a49057361f0e37f90de5f50f7172f04b0a2d389e.tar.gz resurrection-a49057361f0e37f90de5f50f7172f04b0a2d389e.tar.bz2 |
now testing full day resurrection
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands/CommandResurrect.java')
-rw-r--r-- | src/net/brysonsteck/Resurrection/commands/CommandResurrect.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java index a969687..5e902e0 100644 --- a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java +++ b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java @@ -19,22 +19,22 @@ public class CommandResurrect implements CommandExecutor { if (valid) { Player resurrectPlayer = Bukkit.getPlayer(strings[0]); if (resurrectPlayer == null) { - p.sendMessage("That player does not exist! Failed to resurrect."); + p.sendMessage(ChatColor.RED + "That player does not exist! Failed to resurrect."); return false; } if (resurrectPlayer.getGameMode() == GameMode.SPECTATOR) { for (PotionEffect effect : resurrectPlayer.getActivePotionEffects()) resurrectPlayer.removePotionEffect(effect.getType()); resurrectPlayer.setGameMode(GameMode.SURVIVAL); - Bukkit.broadcastMessage(strings[0] + " has been resurrected manually by an admin!"); + Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + strings[0] + " has been resurrected manually by an admin!"); return true; } else { - p.sendMessage(strings[0] + " is not dead! Failed to resurrect."); + p.sendMessage(ChatColor.RED + 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(ChatColor.RED + "Too few arguments!"); + System.out.println(ChatColor.RED + "Usage: /resurrect PLAYER"); return false; } } else { |