mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Replaced /clearall with /purgeall, this cleans more!
This commit is contained in:
parent
a8b4f1d950
commit
fabbc78d22
@ -5,8 +5,8 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
||||||
@CommandParameters(description = "Removes all entities, nicks and disguises.", usage = "/<command>")
|
@CommandParameters(description = "Superadmin command - Purge everything! (except for bans).", usage = "/<command>")
|
||||||
public class Command_clearall extends TFM_Command
|
public class Command_purgeall extends TFM_Command
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
|
||||||
@ -14,6 +14,11 @@ public class Command_clearall extends TFM_Command
|
|||||||
server.dispatchCommand(sender, "rd");
|
server.dispatchCommand(sender, "rd");
|
||||||
server.dispatchCommand(sender, "potion clearall");
|
server.dispatchCommand(sender, "potion clearall");
|
||||||
server.dispatchCommand(sender, "uall");
|
server.dispatchCommand(sender, "uall");
|
||||||
|
server.dispatchCommand(sender, "denick");
|
||||||
|
server.dispatchCommand(sender, "mute purge");
|
||||||
|
server.dispatchCommand(sender, "fr purge");
|
||||||
|
server.dispatchCommand(sender, "mp");
|
||||||
|
//If I'm missing any, lemme know. Or just add it yourself.
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user