diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java b/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java index f432a01f..87bdacab 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands/CreateCommand.java @@ -68,7 +68,8 @@ public class CreateCommand extends MultiverseCommand { } if (this.worldManager.isMVWorld(worldName)) { - sender.sendMessage(ChatColor.RED + "Multiverse cannot create " + ChatColor.GOLD +ChatColor.UNDERLINE + "another" + ChatColor.RESET + ChatColor.RED + " world named " + worldName); + sender.sendMessage(ChatColor.RED + "Multiverse cannot create " + ChatColor.GOLD + ChatColor.UNDERLINE + + "another" + ChatColor.RESET + ChatColor.RED + " world named " + worldName); return; } diff --git a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java index 516b796f..6aff75b9 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java +++ b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java @@ -324,7 +324,8 @@ public class MVPlayerListener implements Listener { Logging.finest("To World: %s", world); player.setGameMode(world.getGameMode()); } else { - Logging.fine("The gamemode was NOT changed for player '%s' because he is now in world '%s' instead of world '%s'", player.getName(), player.getWorld().getName(), world.getName()); + Logging.fine("The gamemode was NOT changed for player '%s' because he is now in world '%s' instead of world '%s'", + player.getName(), player.getWorld().getName(), world.getName()); } } }, 1L); diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleBlockSafety.java b/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleBlockSafety.java index 46387b1c..7b8ccfb9 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleBlockSafety.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/SimpleBlockSafety.java @@ -27,7 +27,7 @@ import java.util.Set; */ public class SimpleBlockSafety implements BlockSafety { private final Core plugin; - private static final Set AROUND_BLOCK = new HashSet() {{ + private static final Set AROUND_BLOCK = new HashSet() { { add(BlockFace.NORTH); add(BlockFace.NORTH_EAST); add(BlockFace.EAST); add(BlockFace.SOUTH_EAST); add(BlockFace.SOUTH); add(BlockFace.SOUTH_WEST); add(BlockFace.WEST); add(BlockFace.NORTH_WEST); } @@ -128,7 +128,7 @@ public class SimpleBlockSafety implements BlockSafety { */ private Location getSafeSpawnAroundABlock(Location l) { Iterator checkblock = AROUND_BLOCK.iterator(); - while(checkblock.hasNext()) { + while (checkblock.hasNext()) { final BlockFace face = checkblock.next(); if (this.playerCanSpawnHereSafely(l.getBlock().getRelative(face).getLocation())) { // Don't forget to center the player.