mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 08:05:20 +00:00
Added /spurgeall
This commit is contained in:
parent
fabbc78d22
commit
e29a820398
2 changed files with 31 additions and 0 deletions
|
@ -18,6 +18,8 @@ public class Command_purgeall extends TFM_Command
|
|||
server.dispatchCommand(sender, "mute purge");
|
||||
server.dispatchCommand(sender, "fr purge");
|
||||
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.
|
||||
|
||||
return true;
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue