Guarmanda / LootChest

Plugin to reload chest with hologram, particles, and editing menu
GNU General Public License v3.0
10 stars 21 forks source link

Loot Chest unlinking all chest on a multiworld server restart. #4

Closed PhantumOne closed 4 years ago

PhantumOne commented 4 years ago

I am running PaperMC 1.15.2 build 208 and the plugin works perfectly until the server restarts for maintenance because one of the worlds is not loaded before the plugin.

I have my main world with the_end and nether, a Skyblock (FabledSkyBlock) that also has an end/nether and another Custom World I created called Underworld. When the server restarts it can not load the chest for Underworld because Multiverse has not loaded the world yet. I have ran /lc reload and it states that it was reloaded, but still the chest are just chest again. All the entries are still in the data.yml file, but if I do a /lc list there are no chest listed. If I do a /lc edit the list displays for me to pick from. I can look at the chest and do /lc create and name it the same as it was before and then set the options and it over write the data.yml entry or just use the data it currently has and it is then working again until next restart. I currently have 20 chest defined and I am going to remove the plugin until it can be fixed or I figure some way to load my Multiverse world before your plugin.

Here is the Console:

[21:12:57] [Server thread/INFO]: [LootChest] Enabling LootChest v2.0.0 [21:12:57] [Server thread/INFO]: [LootChest] Loading config files... [21:12:57] [Server thread/INFO]: [LootChest] Starting particles... [21:12:57] [Server thread/INFO]: [ReflectionHelper] I am loaded from package org.inventivetalent.reflection.minecraft [21:12:57] [Server thread/INFO]: [ReflectionHelper] Version is v1_15_R1 (11501) [21:12:57] [Server thread/INFO]: [LootChest] Loading chests... [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest BasicChest : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_IH_Resp1 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_IL_Thorn1 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_IC_Protect1 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_IB_Depth1 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_SS_Unbreak1 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_Lantern01 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Couldn't load chest WC_IS_Unbreak1 : the world Underworld is not loaded. [21:12:57] [Server thread/INFO]: [LootChest] Loaded 0 Lootchests in 0 miliseconds [21:12:57] [Server thread/INFO]: [LootChest] Starting LootChest timers asynchronously... [21:12:57] [Server thread/INFO]: [LootChest] Plugin loaded

Thanks

Guarmanda commented 4 years ago

Some peoples already had such a problem in the past. I put multiverse core as a softdepend to load my plugin after it. Since it still doesn't work I will do two things:

Guarmanda commented 4 years ago

Oh, and I'll also edit reload command so that chests are COMPLETELY reloaded^^

PhantumOne commented 4 years ago

Here is my log file that shows from start to finish load. I ran /pl after it loaded. latest.log

I am running 88 plugins but you will be able to see that:

LootChest initialized at 00:15:57 then enabled at 00:16:18. Multiverse-core also initialized at 00:15:57 but it enabled at 00:16:26 and Underworld initialized at 00:16:26 and loaded right after Multiverse-core enabled The server started at 00:15:39 and finished loading at 00:16:36 (58 seconds)

Your plugin is loading just 8 seconds before Multiverse so if you can postpone the load of your plugin by 10 seconds, then it should load right after Multiverse finishes loading Underworld.

Thanks.

Guarmanda commented 4 years ago

I added a configurable timer before chest loading in last spigot update

PhantumOne commented 4 years ago

Your the man! Plugin is loading the chest properly now. Thanks for the quick turnaround on this fix.

Love this plugin!!!

PhantumOne