Added /spurgeall

This commit is contained in:
Wilee999 2013-05-16 00:57:26 -07:00
parent fabbc78d22
commit e29a820398
2 changed files with 31 additions and 0 deletions

View File

@ -18,6 +18,8 @@ public class Command_purgeall extends TFM_Command
server.dispatchCommand(sender, "mute purge"); server.dispatchCommand(sender, "mute purge");
server.dispatchCommand(sender, "fr purge"); server.dispatchCommand(sender, "fr purge");
server.dispatchCommand(sender, "mp"); server.dispatchCommand(sender, "mp");
server.dispatchCommand(sender, "blockcmd");
server.dispatchCommand(sender, "halt purge");
//If I'm missing any, lemme know. Or just add it yourself. //If I'm missing any, lemme know. Or just add it yourself.
return true; return true;

View File

@ -0,0 +1,29 @@
package me.StevenLawson.TotalFreedomMod.Commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = AdminLevel.SENIOR, source = SourceType.BOTH)
@CommandParameters(description = "Senioradmin command - Purge everything! (except for bans).", usage = "/<command>")
public class Command_spurgeall extends TFM_Command
{
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
server.dispatchCommand(sender, "rd");
server.dispatchCommand(sender, "potion clearall");
server.dispatchCommand(sender, "uall");
server.dispatchCommand(sender, "denick");
server.dispatchCommand(sender, "mute purge");
server.dispatchCommand(sender, "fr purge");
server.dispatchCommand(sender, "mp");
server.dispatchCommand(sender, "blockcmd");
server.dispatchCommand(sender, "halt purge");
server.dispatchCommand(sender, "lockup purge");
//If I'm missing any, lemme know. Or just add it yourself.
return true;
}
}