Skip to content

Commit

Permalink
Handle plugin reloading properly, uninjecting all player channels.
Browse files Browse the repository at this point in the history
This should prevent any crashes if the plugin is reloaded during 
a player login.
  • Loading branch information
aadnk committed Dec 17, 2013
1 parent 5805150 commit 6bd8bd2
Show file tree
Hide file tree
Showing 7 changed files with 508 additions and 235 deletions.
Expand Up @@ -951,7 +951,6 @@ public void onPluginDisabled(PluginDisableEvent event) {
}

private void onPlayerLogin(PlayerLoginEvent event) {
System.out.println("Address: " + event.getAddress());
playerInjection.updatePlayer(event.getPlayer());
}

Expand Down

0 comments on commit 6bd8bd2

Please sign in to comment.