mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
add mv autoworld load support
Former-commit-id: f236484aca95a07a2d4f79490f3f2a821f4d1ab5
This commit is contained in:
1 parent
4e9dbfe687
commit
b4ba8e1718
1 file changed
+11
@@ -159,6 +159,12 @@ public class QuickShop extends JavaPlugin {
|
||||
getLogger().info("Couldn't find a Vault permission provider. Some feature may be limited.");
|
||||
}
|
||||
|
||||
mPlugin = (MultiverseCore) Bukkit.getPluginManager().getPlugin("Multiverse-Core");
|
||||
|
||||
if (mPlugin != null) {
|
||||
getLogger().info("Successfully loaded MultiverseCore support!");
|
||||
}
|
||||
|
||||
int CurrentConfigVersion = 1;
|
||||
|
||||
if (getConfig().getInt("config-version") != CurrentConfigVersion) {
|
||||
@@ -364,6 +370,11 @@ public class QuickShop extends JavaPlugin {
|
||||
z = rs.getInt("z");
|
||||
worldName = rs.getString("world");
|
||||
World world = Bukkit.getWorld(worldName);
|
||||
if (world == null && mPlugin != null) {
|
||||
// Maybe world not loaded? Try call MV to load world.
|
||||
mPlugin.getCore().getMVWorldManager().loadWorld(worldName);
|
||||
world = Bukkit.getWorld(worldName);
|
||||
}
|
||||
item = Util.deserialize(rs.getString("itemConfig"));
|
||||
owner = rs.getString("owner");
|
||||
ownerUUID = null;
|
||||
|
||||
Reference in new issue
Block a user