@Inject
LeagueManager(MultiplayerGameManager<AbstractMultiplayerPlayer> gameManager)
{
- cheatLevel = CheatLevel.FORBIDDEN;
+ int level = gameManager.getLeagueLevel();
+ cheatLevel = level <= 1 ? CheatLevel.ALLOWED
+ : level <= 2 ? CheatLevel.TOLERATED
+ : CheatLevel.FORBIDDEN;
}
}