* Attempt fix little bug.

This commit is contained in:
Steffion 2013-08-12 20:47:38 +02:00
parent da1b8192f1
commit ddb50ec256

View File

@ -17,6 +17,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
public class OnEntityDamageByEntityEvent implements Listener {
@SuppressWarnings("deprecation")
@EventHandler(priority = EventPriority.NORMAL)
public void onEntityDamageByEntityEvent(EntityDamageByEntityEvent event) {
Entity ent = event.getEntity();
@ -72,9 +73,11 @@ public class OnEntityDamageByEntityEvent implements Listener {
"secs-" + arena.waitingTimeSeeker);
}
player.getInventory().clear();
player.updateInventory();
if (arena.seekers.size() >= arena.playersInArena
.size()) {
player.teleport(W.pLocation.get(player));
ArenaHandler.seekersWin(arena);
} else {
W.dcAPI.undisguisePlayer(player);