Cleanup comments, formatting, etc

This commit is contained in:
Travis Watkins
2013-03-24 23:22:32 -05:00
parent 7c40a073d8
commit 5f089137ee
148 changed files with 420 additions and 470 deletions

View File

@@ -723,7 +723,7 @@ public final class CraftServer implements Server {
internal.worldMaps = console.worlds.get(0).worldMaps;
internal.tracker = new EntityTracker(internal); // CraftBukkit
internal.addIWorldAccess((IWorldAccess) new WorldManager(console, internal));
internal.addIWorldAccess(new WorldManager(console, internal));
internal.difficulty = 1;
internal.setSpawnFlags(true, true);
console.worlds.add(internal);
@@ -795,7 +795,7 @@ public final class CraftServer implements Server {
if (save) {
try {
handle.save(true, (IProgressUpdate) null);
handle.save(true, null);
handle.saveLevel();
WorldSaveEvent event = new WorldSaveEvent(handle.getWorld());
getPluginManager().callEvent(event);
@@ -936,12 +936,12 @@ public final class CraftServer implements Server {
if (section != null) {
for (String key : section.getKeys(false)) {
List<String> commands = null;
List<String> commands;
if (section.isList(key)) {
commands = section.getStringList(key);
} else {
commands = ImmutableList.<String>of(section.getString(key));
commands = ImmutableList.of(section.getString(key));
}
result.put(key, commands.toArray(new String[commands.size()]));
@@ -1247,9 +1247,9 @@ public final class CraftServer implements Server {
public void onPlayerJoin(Player player) {
if ((updater.isEnabled()) && (updater.getCurrent() != null) && (player.hasPermission(Server.BROADCAST_CHANNEL_ADMINISTRATIVE))) {
if ((updater.getCurrent().isBroken()) && (updater.getOnBroken().contains(updater.WARN_OPERATORS))) {
if ((updater.getCurrent().isBroken()) && (updater.getOnBroken().contains(AutoUpdater.WARN_OPERATORS))) {
player.sendMessage(ChatColor.DARK_RED + "The version of CraftBukkit that this server is running is known to be broken. Please consider updating to the latest version at dl.bukkit.org.");
} else if ((updater.isUpdateAvailable()) && (updater.getOnUpdate().contains(updater.WARN_OPERATORS))) {
} else if ((updater.isUpdateAvailable()) && (updater.getOnUpdate().contains(AutoUpdater.WARN_OPERATORS))) {
player.sendMessage(ChatColor.DARK_PURPLE + "The version of CraftBukkit that this server is running is out of date. Please consider updating to the latest version at dl.bukkit.org.");
}
}