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-08-24 19:18:50 +02:00
|
|
|
public CmdKillHolograms() {
|
|
|
|
super();
|
|
|
|
this.aliases.add("killholos");
|
|
|
|
this.requiredArgs.add("radius");
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-09-14 21:13:01 +02:00
|
|
|
this.requirements = new CommandRequirements.Builder(Permission.KILLHOLOS)
|
|
|
|
.playerOnly()
|
|
|
|
.build();
|
2019-08-24 19:18:50 +02:00
|
|
|
}
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
@Override
|
2019-09-14 21:13:01 +02:00
|
|
|
public void perform(CommandContext context) {
|
|
|
|
context.player.sendMessage("Killing Invisible Armor Stands..");
|
|
|
|
context.player.chat("/minecraft:kill @e[type=ArmorStand,r=" + context.argAsInt(0) + "]");
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
}
|
2018-03-27 01:42:26 +02:00
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
@Override
|
|
|
|
public TL getUsageTranslation() {
|
|
|
|
return TL.COMMAND_KILLHOLOGRAMS_DESCRIPTION;
|
|
|
|
}
|
2018-03-27 01:42:26 +02:00
|
|
|
}
|
2019-09-14 21:13:01 +02:00
|
|
|
|