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
|
||||
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
||||
version: 3.10.9f
|
||||
version: 3.10.10
|
||||
loadbefore: [aPlugin]
|
||||
commands:
|
||||
money:
|
||||
|
@ -1828,6 +1828,16 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
||||
case "POISON":{
|
||||
Buff.addBuff(p, "Poison", new Buff("Poison",20*20,Integer.parseInt(args[1]),Color.YELLOW,ChatColor.YELLOW+"☣",false));
|
||||
}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