Change winstreaks back to how they were previously handled

This commit is contained in:
Sam 2017-11-12 11:41:35 +00:00 committed by Alexander Meech
parent 546543c93f
commit ba1882f4c2

View File

@ -51,16 +51,17 @@ public class WinStreakModule extends Module
}
winners.forEach(this::incrementStreak);
}
UtilServer.getPlayersCollection().forEach(player ->
@EventHandler(priority = EventPriority.MONITOR)
public void playerDeathOut(PlayerDeathOutEvent event)
{
if (event.isCancelled())
{
if (winners.contains(player))
{
return;
}
return;
}
removeStreak(player);
});
removeStreak(event.GetPlayer());
}
@EventHandler(priority = EventPriority.LOW)