From 8884b478aab66a9754562377a82c4270c794e5cf Mon Sep 17 00:00:00 2001 From: Jerom van der Sar Date: Tue, 18 Sep 2012 11:45:14 +0200 Subject: [PATCH] added /rank for console --- .../StevenLawson/TotalFreedomMod/Commands/Command_rank.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_rank.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_rank.java index 3eea90a..9cc59ab 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_rank.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_rank.java @@ -6,7 +6,6 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -//This command was coded initially by JeromSar public class Command_rank extends TFM_Command { @@ -15,7 +14,10 @@ public class Command_rank extends TFM_Command { if (senderIsConsole && args.length < 1) { - TFM_Util.playerMsg(sender, "You cannot use this command without arguments in the console."); + for(Player p : server.getOnlinePlayers()) + { + sender.sendMessage(p.getName() + " is " + TFM_Util.getRank(p)); + } return true; }