Пример #1
0
 @EventHandler(priority = EventPriority.MONITOR)
 public void onLogout(PlayerQuitEvent playerQuitEvent) {
   IPluginManager pluginManager = PluginManager.getInstance();
   pluginManager.getSessionHandler().removeUserSession(playerQuitEvent.getPlayer());
 }
Пример #2
0
 @EventHandler(priority = EventPriority.MONITOR)
 public void onPlayerJoin(PlayerJoinEvent playerJoinEvent) {
   IPluginManager pluginManager = PluginManager.getInstance();
   pluginManager.getSessionHandler().addUserSession(playerJoinEvent.getPlayer());
 }