mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 20:46:41 +00:00
Fixing marco's mistakes (#8)
This commit is contained in:
@ -38,23 +38,24 @@ public class Command_smite extends FreedomCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
smite(player, reason);
|
||||
smite(sender, player, reason);
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void smite(Player player)
|
||||
public static void smite(CommandSender sender, Player player)
|
||||
{
|
||||
smite(player, null);
|
||||
smite(sender, player, null);
|
||||
}
|
||||
|
||||
public static void smite(Player player, String reason)
|
||||
public static void smite(CommandSender sender, Player player, String reason)
|
||||
{
|
||||
FUtil.bcastMsg(player.getName() + " has been a naughty, naughty boy.", ChatColor.RED);
|
||||
|
||||
if (reason != null)
|
||||
{
|
||||
FUtil.bcastMsg(" Reason: " + reason, ChatColor.YELLOW);
|
||||
FUtil.bcastMsg(" Reason: " + ChatColor.YELLOW + reason, ChatColor.RED);
|
||||
}
|
||||
FUtil.bcastMsg(" Smited by: " + ChatColor.YELLOW + sender.getName(), ChatColor.RED);
|
||||
|
||||
// Deop
|
||||
player.setOp(false);
|
||||
|
Reference in New Issue
Block a user