1
0
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:
snowleo
2011-12-06 14:39:52 +01:00
parent 4c2b9b8d0f
commit 166dfbd532
8 changed files with 145 additions and 105 deletions

View File

@@ -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);