mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 20:16:06 +01:00
Attempted fix for npe on worldmanager
This commit is contained in:
parent
29bc8bfbfc
commit
2717a7bbee
@ -347,39 +347,6 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
|||||||
this.commandHandler.registerCommand(new CheckCommand(this));
|
this.commandHandler.registerCommand(new CheckCommand(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Deprecated, please use WorldManager.loadWorlds(Boolean forceLoad) now. */
|
|
||||||
@Deprecated
|
|
||||||
public void loadWorlds(boolean forceLoad) {
|
|
||||||
this.worldManager.loadWorlds(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated, please use WorldManager.addWorld(String name, Environment env, String seedString, String generator)
|
|
||||||
* now.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public boolean addWorld(String name, Environment env, String seedString, String generator) {
|
|
||||||
return this.worldManager.addWorld(name, env, seedString, generator);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Deprecated, please use WorldManager.unloadWorld(String name) now. */
|
|
||||||
@Deprecated
|
|
||||||
public boolean removeWorldFromList(String name) {
|
|
||||||
return this.worldManager.unloadWorld(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Deprecated, please use WorldManager.removeWorldFromConfig(String name) now. */
|
|
||||||
@Deprecated
|
|
||||||
public boolean removeWorldFromConfig(String name) {
|
|
||||||
return this.worldManager.removeWorldFromConfig(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Deprecated please use WorldManager.deleteWorld(String name) now. */
|
|
||||||
@Deprecated
|
|
||||||
public Boolean deleteWorld(String name) {
|
|
||||||
return this.worldManager.deleteWorld(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** What happens when the plugin gets disabled... */
|
/** What happens when the plugin gets disabled... */
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
debugLog.close();
|
debugLog.close();
|
||||||
@ -416,16 +383,6 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
|
|||||||
return this.ph;
|
return this.ph;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public com.onarandombox.MultiverseCore.MVPermissions getPermissions() {
|
|
||||||
return new com.onarandombox.MultiverseCore.MVPermissions(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public PurgeWorlds getWorldPurger() {
|
|
||||||
return this.worldManager.getWorldPurger();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** onCommand */
|
/** onCommand */
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
|
||||||
|
@ -383,7 +383,10 @@ public class WorldManager implements MVWorldManager {
|
|||||||
String seedString = this.configWorlds.getString("worlds." + worldKey + ".seed", "");
|
String seedString = this.configWorlds.getString("worlds." + worldKey + ".seed", "");
|
||||||
|
|
||||||
String generatorString = this.configWorlds.getString("worlds." + worldKey + ".generator");
|
String generatorString = this.configWorlds.getString("worlds." + worldKey + ".generator");
|
||||||
|
if (environment.equalsIgnoreCase("skylands")) {
|
||||||
|
this.plugin.log(Level.WARNING, "Found SKYLANDS world. Not importing automatically, as it won't work atm :(");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
addWorld(worldKey, this.plugin.getEnvFromString(environment), seedString, generatorString);
|
addWorld(worldKey, this.plugin.getEnvFromString(environment), seedString, generatorString);
|
||||||
|
|
||||||
// Increment the world count
|
// Increment the world count
|
||||||
|
Loading…
Reference in New Issue
Block a user