summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/MinecraftServer.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-21 22:30:01 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-21 22:30:01 +0000
commitf659231e347f0e06a24f94d72136d3dfd9f0c7c4 (patch)
tree187de36cefbb4fa2df3adef0ec62f6da0c7b3f77 /src/main/java/net/minecraft/server/MinecraftServer.java
parent67cf646014fa6336c7df4abefe85a2dec447d699 (diff)
downloadcraftbukkit-f659231e347f0e06a24f94d72136d3dfd9f0c7c4.tar
craftbukkit-f659231e347f0e06a24f94d72136d3dfd9f0c7c4.tar.gz
craftbukkit-f659231e347f0e06a24f94d72136d3dfd9f0c7c4.tar.lz
craftbukkit-f659231e347f0e06a24f94d72136d3dfd9f0c7c4.tar.xz
craftbukkit-f659231e347f0e06a24f94d72136d3dfd9f0c7c4.zip
N.M.S cleanup in preparation for update
Diffstat (limited to 'src/main/java/net/minecraft/server/MinecraftServer.java')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index f3c4c97d..bcb9ebc2 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -30,7 +30,7 @@ public class MinecraftServer implements ICommandListener, Runnable {
public static HashMap b = new HashMap();
public NetworkListenThread c;
public PropertyManager d;
- //public WorldServer e;
+ //public WorldServer e; // Craftbukkit - removed
public ServerConfigurationManager f;
private boolean o = true;
public boolean g = false;
@@ -43,21 +43,21 @@ public class MinecraftServer implements ICommandListener, Runnable {
public boolean l;
public boolean m;
public boolean n;
- public int spawnProtection; // CraftBukkit Configurable spawn protection start
- public List<WorldServer> worlds = new ArrayList<WorldServer>();
- // Craftbukkit start - adds argument OptionSet
- public MinecraftServer(OptionSet options) {
- new ThreadSleepForever(this);
- // CraftBukkit start
- this.options = options;
- }
+ // Craftbukkit start
+ public int spawnProtection;
+ public List<WorldServer> worlds = new ArrayList<WorldServer>();
public CraftServer server;
public OptionSet options;
public ConsoleCommandSender console = new ConsoleCommandSender();
+ // Craftbukkit end
- private boolean d() throws UnknownHostException {
- // CraftBukkit end -- added throws UnknownHostException
+ public MinecraftServer(OptionSet options) { // Craftbukkit - adds argument OptionSet
+ new ThreadSleepForever(this);
+ this.options = options; // CraftBukkit
+ }
+
+ private boolean d() throws UnknownHostException { // CraftBukkit - added throws UnknownHostException
ThreadCommandReader threadcommandreader = new ThreadCommandReader(this);
threadcommandreader.setDaemon(true);
@@ -95,8 +95,7 @@ public class MinecraftServer implements ICommandListener, Runnable {
try {
this.c = new NetworkListenThread(this, inetaddress, i);
- // CraftBukkit: Be more generic; IOException -> Throwable
- } catch (Throwable ioexception) {
+ } catch (Throwable ioexception) { // CraftBukkit - IOException -> Throwable
a.warning("**** FAILED TO BIND TO PORT!");
a.log(Level.WARNING, "The exception was: " + ioexception.toString());
a.warning("Perhaps a server is already running on that port?");
@@ -194,10 +193,11 @@ public class MinecraftServer implements ICommandListener, Runnable {
private void g() {
a.info("Stopping server");
- // CraftBukkit
+ // CraftBukkit start
if(server != null) {
server.disablePlugins();
}
+ // Craftbukkit end
if (this.f != null) {
this.f.d();
@@ -570,8 +570,7 @@ public class MinecraftServer implements ICommandListener, Runnable {
this.p.add(iupdateplayerlistbox);
}
- // Craftbukkit start - replaces main(String args[])
- public static void main(final OptionSet options) {
+ public static void main(final OptionSet options) { // Craftbukkit - replaces main(String args[])
try {
MinecraftServer minecraftserver = new MinecraftServer(options);