1.5 Compatibility

This commit is contained in:
Rigby 2011-06-30 20:44:46 +01:00
parent dad4547c21
commit 2ff10d0882

View File

@ -86,7 +86,6 @@ public class MultiverseCore extends JavaPlugin {
loadConfigs();
}
@Override
public void onEnable() {
// Output a little snippet to show it's enabled.
this.log(Level.INFO, "- Version " + this.getDescription().getVersion() + " Enabled - By " + getAuthors());
@ -317,7 +316,7 @@ public class MultiverseCore extends JavaPlugin {
ChunkGenerator customGenerator = getChunkGenerator(generatorName, generatorID, name);
if (customGenerator == null && generator != null && !generator.isEmpty()) {
if (customGenerator == null && generator != null && (generator.length() > 0)) {
if (!pluginExists(generatorName)) {
log(Level.WARNING, "Could not find plugin: " + generatorName);
} else {
@ -440,7 +439,6 @@ public class MultiverseCore extends JavaPlugin {
/**
* What happens when the plugin gets disabled...
*/
@Override
public void onDisable() {
debugLog.close();
MultiverseCore.Permissions = null;