mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-12-26 19:07:55 +01:00
Useless spam, quite obvious the default World will be loaded before
the plugin.
This commit is contained in:
parent
33603d3605
commit
7da2c84806
@ -157,7 +157,12 @@ public class MultiVerseCore extends JavaPlugin {
|
|||||||
// You never know these days... bloody NPE's.
|
// You never know these days... bloody NPE's.
|
||||||
if(lworlds != null && lworlds.size()>0){
|
if(lworlds != null && lworlds.size()>0){
|
||||||
for (World world : lworlds){
|
for (World world : lworlds){
|
||||||
log.info(logPrefix + "Loading existing World - '" + world.getName() + "' - " + world.getEnvironment().toString()); // Output to the Log that wea re loading a world, specify the name and environment type.
|
// If it's the default world we should probably ignore outputting it as it will just be spam.
|
||||||
|
if((getServer().getWorlds().get(0).getName().equals(world.getName()))){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
log.info(logPrefix + "Loading existing World - '" + world.getName() + "' - " + world.getEnvironment().toString()); // Output to the Log that we are loading a world, specify the name and environment type.
|
||||||
|
|
||||||
worlds.put(world.getName(), new MVWorld(world, MultiVerseCore.configWorlds, this, false)); // Place the World into the HashMap.
|
worlds.put(world.getName(), new MVWorld(world, MultiVerseCore.configWorlds, this, false)); // Place the World into the HashMap.
|
||||||
count++; // Increment the World Count.
|
count++; // Increment the World Count.
|
||||||
|
Loading…
Reference in New Issue
Block a user