@EventHandler public void playerLogout(PlayerQuitEvent e) { em.savePlayerDataToDataBase(e.getPlayer()); }
@EventHandler public void playerLogin(PlayerLoginEvent e) { if (!em.loadPlayerDataFromDataBase(e.getPlayer())) { em.playerFirstLogin(e.getPlayer()); } }