mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Added /spurgeall
This commit is contained in:
parent
fabbc78d22
commit
e29a820398
@ -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;
|
||||||
|
@ -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 New Issue
Block a user