mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
Cleanup comments, formatting, etc
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user