mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
57 lines
2.6 KiB
Diff
57 lines
2.6 KiB
Diff
--- ../src-base/minecraft/net/minecraft/server/dedicated/DedicatedServer.java
|
|
+++ ../src-work/minecraft/net/minecraft/server/dedicated/DedicatedServer.java
|
|
@@ -49,6 +49,7 @@
|
|
private boolean field_71338_p;
|
|
private WorldSettings.GameType field_71337_q;
|
|
private boolean field_71335_s;
|
|
+ public static boolean allowPlayerLogins = false;
|
|
private static final String __OBFID = "CL_00001784";
|
|
|
|
public DedicatedServer(File p_i1508_1_)
|
|
@@ -88,6 +89,7 @@
|
|
private static final String __OBFID = "CL_00001786";
|
|
public void run()
|
|
{
|
|
+ if (net.minecraftforge.server.console.TerminalHandler.handleCommands(DedicatedServer.this)) return;
|
|
BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(System.in));
|
|
String s4;
|
|
|
|
@@ -113,6 +115,8 @@
|
|
field_155771_h.warn("To start the server with more ram, launch it as \"java -Xmx1024M -Xms1024M -jar minecraft_server.jar\"");
|
|
}
|
|
|
|
+ net.minecraftforge.fml.common.FMLCommonHandler.instance().onServerStart(this);
|
|
+
|
|
field_155771_h.info("Loading properties");
|
|
this.field_71340_o = new PropertyManager(new File("server.properties"));
|
|
this.field_154332_n = new ServerEula(new File("eula.txt"));
|
|
@@ -204,6 +208,7 @@
|
|
}
|
|
else
|
|
{
|
|
+ net.minecraftforge.fml.common.FMLCommonHandler.instance().onServerStarted();
|
|
this.func_152361_a(new DedicatedPlayerList(this));
|
|
long j = System.nanoTime();
|
|
|
|
@@ -250,6 +255,7 @@
|
|
this.func_71191_d((this.func_71207_Z() + 8) / 16 * 16);
|
|
this.func_71191_d(MathHelper.func_76125_a(this.func_71207_Z(), 64, 256));
|
|
this.field_71340_o.func_73667_a("max-build-height", Integer.valueOf(this.func_71207_Z()));
|
|
+ if (!net.minecraftforge.fml.common.FMLCommonHandler.instance().handleServerAboutToStart(this)) return false;
|
|
field_155771_h.info("Preparing level \"" + this.func_71270_I() + "\"");
|
|
this.func_71247_a(this.func_71270_I(), this.func_71270_I(), k, worldtype, s2);
|
|
long i1 = System.nanoTime() - j;
|
|
@@ -278,10 +284,11 @@
|
|
thread1.start();
|
|
}
|
|
|
|
- return true;
|
|
+ return net.minecraftforge.fml.common.FMLCommonHandler.instance().handleServerStarting(this);
|
|
}
|
|
}
|
|
}
|
|
+ public void func_145747_a(net.minecraft.util.IChatComponent message) { field_155771_h.info(message.func_150254_d()); }
|
|
|
|
public void func_71235_a(WorldSettings.GameType p_71235_1_)
|
|
{
|