Ejemplo n.º 1
0
  @EventHandler
  public void playerQuitEvent(PlayerQuitEvent e) {
    Player p = e.getPlayer();

    HealthManager.checkPlayerHealth(p, p.getWorld());

    RaceManager.removePlayerFromRaceMap(p);
  }
Ejemplo n.º 2
0
  @EventHandler
  public void playerJoinEvent(PlayerJoinEvent e) {
    Player p = e.getPlayer();

    HealthManager.checkPlayerHealth(p, p.getWorld());

    RaceManager.addPlayerToRaceMap(p);
  }