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