mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-04-07 20:46:24 +02:00
Fixed all other style warnings
This commit is contained in:
parent
85cd71cb8a
commit
74947a7efd
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -27,7 +27,7 @@ import java.util.Set;
|
||||
*/
|
||||
public class SimpleBlockSafety implements BlockSafety {
|
||||
private final Core plugin;
|
||||
private static final Set<BlockFace> AROUND_BLOCK = new HashSet<BlockFace>() {{
|
||||
private static final Set<BlockFace> AROUND_BLOCK = new HashSet<BlockFace>() { {
|
||||
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<BlockFace> 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.
|
||||
|
Loading…
Reference in New Issue
Block a user