Change winstreaks back to how they were previously handled
This commit is contained in:
parent
546543c93f
commit
ba1882f4c2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user