Testing...

This commit is contained in:
main() 2012-05-03 17:05:17 +02:00
parent c6feb127de
commit d65cc8215c
2 changed files with 5 additions and 1 deletions

View File

@ -654,6 +654,7 @@ public class MVWorld extends SerializationConfig implements MultiverseWorld {
this.bedRespawn = true;
this.worldBlacklist = new ArrayList<String>();
this.generator = null;
this.allowFlight = true;
}
/**

View File

@ -366,9 +366,12 @@ public class MVPlayerListener implements Listener {
// Check that the player is in the new world and they haven't been teleported elsewhere or the event cancelled.
if (player.getWorld() == world.getCBWorld()) {
player.setAllowFlight(world.isFlightAllowed());
MultiverseCore.staticLog(Level.FINER,
String.format("%s's allowFlight was set to %b!",
player.getName(), world.isFlightAllowed()));
} else {
MultiverseCore.staticLog(Level.FINE,
String.format("The gamemode was NOT changed for player '%s' because he is now in world '%s' instead of world '%s'",
String.format("allowFlight was NOT changed for player '%s' because he is now in world '%s' instead of world '%s'",
player.getName(), player.getWorld().getName(), world.getName()));
}
}