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