@EventHandler public void playerQuitEvent(PlayerQuitEvent e) { Player p = e.getPlayer(); HealthManager.checkPlayerHealth(p, p.getWorld()); RaceManager.removePlayerFromRaceMap(p); }
@EventHandler public void playerJoinEvent(PlayerJoinEvent e) { Player p = e.getPlayer(); HealthManager.checkPlayerHealth(p, p.getWorld()); RaceManager.addPlayerToRaceMap(p); }