mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:24:57 +00:00
added /rank for console
This commit is contained in:
parent
87455d61ad
commit
8884b478aa
1 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,6 @@ import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
//This command was coded initially by JeromSar
|
|
||||||
|
|
||||||
public class Command_rank extends TFM_Command
|
public class Command_rank extends TFM_Command
|
||||||
{
|
{
|
||||||
|
@ -15,7 +14,10 @@ public class Command_rank extends TFM_Command
|
||||||
{
|
{
|
||||||
if (senderIsConsole && args.length < 1)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue