Fixed NPE at player quit
This commit is contained in:
parent
e636738acb
commit
c155eb761b
1 changed files with 2 additions and 2 deletions
|
@ -433,8 +433,8 @@ public class TBMCPlayer implements AutoCloseable {
|
|||
* Only intended to use from ButtonCore
|
||||
*/
|
||||
public static void quitPlayer(TBMCPlayer player) {
|
||||
getLoadedPlayers().remove(player.uuid);
|
||||
Bukkit.getServer().getPluginManager().callEvent(new TBMCPlayerQuitEvent(player));
|
||||
getLoadedPlayers().remove(player.uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue