mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-02 00:56:55 +02:00
Prevent some rare cases of NPE and Deadlocks, better error handling on yaml load
This commit is contained in:
@@ -35,6 +35,7 @@ public class EssentialsSpawn extends JavaPlugin
|
||||
}
|
||||
|
||||
spawns = new SpawnStorage(ess);
|
||||
ess.addReloadListener(spawns);
|
||||
|
||||
final EssentialsSpawnPlayerListener playerListener = new EssentialsSpawnPlayerListener(ess, spawns);
|
||||
pluginManager.registerEvent(Type.PLAYER_RESPAWN, playerListener, Priority.Low, this);
|
||||
|
Reference in New Issue
Block a user