2018-03-27 01:42:26 +02:00
|
|
|
package com.massivecraft.factions.cmd;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.struct.Permission;
|
|
|
|
import com.massivecraft.factions.zcore.util.TL;
|
|
|
|
|
|
|
|
public class CmdKillHolograms extends FCommand {
|
2019-03-03 04:51:21 +01:00
|
|
|
public CmdKillHolograms() {
|
|
|
|
super();
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
this.aliases.add("killholos");
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
this.requiredArgs.add("radius");
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
this.permission = Permission.KILLHOLOS.node;
|
|
|
|
this.disableOnLock = true;
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
senderMustBePlayer = true;
|
|
|
|
senderMustBeMember = false;
|
|
|
|
senderMustBeModerator = false;
|
|
|
|
senderMustBeColeader = false;
|
|
|
|
senderMustBeAdmin = false;
|
|
|
|
}
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
@Override
|
|
|
|
public void perform() {
|
|
|
|
me.sendMessage("Killing Invisible Armor Stands..");
|
|
|
|
me.chat("/minecraft:kill @e[type=ArmorStand,r=" + argAsInt(0) + "]");
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
}
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-03-03 04:51:21 +01:00
|
|
|
@Override
|
|
|
|
public TL getUsageTranslation() {
|
|
|
|
return TL.COMMAND_KILLHOLOGRAMS_DESCRIPTION;
|
|
|
|
}
|
2018-03-27 01:42:26 +02:00
|
|
|
}
|