Allow dummies to automatically be removed.

This commit is contained in:
sigonasr2 2017-04-18 21:06:50 -05:00
parent 46b7cb9779
commit bf62dccbdb
3 changed files with 11 additions and 1 deletions

Binary file not shown.

View File

@ -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:

View File

@ -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;
} }
} }