Allow dummies to automatically be removed.
This commit is contained in:
parent
46b7cb9779
commit
bf62dccbdb
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: TwosideKeeper
|
name: TwosideKeeper
|
||||||
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
||||||
version: 3.10.9f
|
version: 3.10.10
|
||||||
loadbefore: [aPlugin]
|
loadbefore: [aPlugin]
|
||||||
commands:
|
commands:
|
||||||
money:
|
money:
|
||||||
|
@ -1828,6 +1828,16 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
case "POISON":{
|
case "POISON":{
|
||||||
Buff.addBuff(p, "Poison", new Buff("Poison",20*20,Integer.parseInt(args[1]),Color.YELLOW,ChatColor.YELLOW+"☣",false));
|
Buff.addBuff(p, "Poison", new Buff("Poison",20*20,Integer.parseInt(args[1]),Color.YELLOW,ChatColor.YELLOW+"☣",false));
|
||||||
}break;
|
}break;
|
||||||
|
case "REMOVEDUMMY":{
|
||||||
|
List<Entity> nearby = p.getNearbyEntities(5, 5, 5);
|
||||||
|
for (Entity e : nearby) {
|
||||||
|
if (e instanceof LivingEntity) {
|
||||||
|
if (Dummy.isDummy((LivingEntity)e)) {
|
||||||
|
e.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user