mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
fix addon inventories bug with non-default worlds
This commit is contained in:
parent
49950cf64c
commit
4dcf8aabea
@ -667,9 +667,6 @@ public final class SlimefunPlugin extends JavaPlugin implements SlimefunAddon {
|
|||||||
// Handle Slimefun Guide being given on Join
|
// Handle Slimefun Guide being given on Join
|
||||||
new SlimefunGuideListener(this, config.getBoolean("guide.receive-on-first-join"));
|
new SlimefunGuideListener(this, config.getBoolean("guide.receive-on-first-join"));
|
||||||
|
|
||||||
// Load/Unload Worlds in Slimefun
|
|
||||||
new WorldListener(this);
|
|
||||||
|
|
||||||
// Clear the Slimefun Guide History upon Player Leaving
|
// Clear the Slimefun Guide History upon Player Leaving
|
||||||
new PlayerProfileListener(this);
|
new PlayerProfileListener(this);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
|
import io.github.thebusybiscuit.slimefun4.implementation.listeners.WorldListener;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
|
|
||||||
@ -56,6 +57,9 @@ public class SlimefunStartupTask implements Runnable {
|
|||||||
SlimefunPlugin.logger().log(Level.SEVERE, x, () -> "An Error occurred while trying to load World \"" + world.getName() + "\" for Slimefun v" + SlimefunPlugin.getVersion());
|
SlimefunPlugin.logger().log(Level.SEVERE, x, () -> "An Error occurred while trying to load World \"" + world.getName() + "\" for Slimefun v" + SlimefunPlugin.getVersion());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Load/Unload Worlds, only after all plugins have started up.
|
||||||
|
new WorldListener(this.plugin);
|
||||||
|
|
||||||
// Only load this Listener if the corresponding items are enabled
|
// Only load this Listener if the corresponding items are enabled
|
||||||
if (isEnabled("ELEVATOR_PLATE", "GPS_ACTIVATION_DEVICE_SHARED", "GPS_ACTIVATION_DEVICE_PERSONAL")) {
|
if (isEnabled("ELEVATOR_PLATE", "GPS_ACTIVATION_DEVICE_SHARED", "GPS_ACTIVATION_DEVICE_PERSONAL")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user