mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-22 18:25:59 +01:00
Wait for other plugins to load before loading levels.
This commit is contained in:
parent
5554ce2091
commit
109fd75dbd
@ -108,7 +108,6 @@ public class EpicHoppers extends SongodaPlugin {
|
||||
this.playerDataManager = new PlayerDataManager();
|
||||
this.boostManager = new BoostManager();
|
||||
|
||||
this.loadLevelManager();
|
||||
this.checkStorage();
|
||||
|
||||
// Load from file
|
||||
@ -172,6 +171,7 @@ public class EpicHoppers extends SongodaPlugin {
|
||||
* Register hoppers into HopperManger from configuration
|
||||
*/
|
||||
Bukkit.getScheduler().runTaskLater(this, () -> {
|
||||
this.loadLevelManager();
|
||||
if (storage.containsGroup("sync")) {
|
||||
for (StorageRow row : storage.getRowsByGroup("sync")) {
|
||||
Location location = Methods.unserializeLocation(row.getKey());
|
||||
|
Loading…
Reference in New Issue
Block a user