@EventHandler(priority = EventPriority.MONITOR) public void onLogout(PlayerQuitEvent playerQuitEvent) { IPluginManager pluginManager = PluginManager.getInstance(); pluginManager.getSessionHandler().removeUserSession(playerQuitEvent.getPlayer()); }
@EventHandler(priority = EventPriority.MONITOR) public void onPlayerJoin(PlayerJoinEvent playerJoinEvent) { IPluginManager pluginManager = PluginManager.getInstance(); pluginManager.getSessionHandler().addUserSession(playerJoinEvent.getPlayer()); }