mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-20 14:53:49 -07:00
@@ -18,15 +18,15 @@
|
||||
public class DedicatedServer extends MinecraftServer implements IMinecraftServer {
|
||||
|
||||
private static final Logger LOGGER = LogManager.getLogger();
|
||||
private static final Pattern i = Pattern.compile("^[a-fA-F0-9]{40}$");
|
||||
private static final Pattern h = Pattern.compile("^[a-fA-F0-9]{40}$");
|
||||
- private final List<ServerCommand> serverCommandQueue = Collections.synchronizedList(Lists.newArrayList());
|
||||
+ private final List<ServerCommand> serverCommandQueue = Collections.synchronizedList(Lists.<ServerCommand>newArrayList()); // CraftBukkit - fix decompile error
|
||||
private RemoteStatusListener k;
|
||||
private RemoteStatusListener j;
|
||||
public final RemoteControlCommandListener remoteControlCommandListener = new RemoteControlCommandListener(this);
|
||||
private RemoteControlListener m;
|
||||
private RemoteControlListener l;
|
||||
@@ -37,8 +48,10 @@
|
||||
private EnumGamemode q;
|
||||
private boolean r;
|
||||
private EnumGamemode p;
|
||||
private boolean q;
|
||||
|
||||
- public DedicatedServer(File file, DataFixer datafixer, YggdrasilAuthenticationService yggdrasilauthenticationservice, MinecraftSessionService minecraftsessionservice, GameProfileRepository gameprofilerepository, UserCache usercache) {
|
||||
- super(file, Proxy.NO_PROXY, datafixer, new CommandDispatcher(true), yggdrasilauthenticationservice, minecraftsessionservice, gameprofilerepository, usercache);
|
||||
@@ -106,8 +106,8 @@
|
||||
DedicatedServer.LOGGER.info("Loading properties");
|
||||
- this.propertyManager = new PropertyManager(new File("server.properties"));
|
||||
+ this.propertyManager = new PropertyManager(this.options); // CraftBukkit - CLI argument support
|
||||
this.o = new EULA(new File("eula.txt"));
|
||||
if (!this.o.a()) {
|
||||
this.n = new EULA(new File("eula.txt"));
|
||||
if (!this.n.a()) {
|
||||
DedicatedServer.LOGGER.info("You need to agree to the EULA in order to run the server. Go to eula.txt for more info.");
|
||||
@@ -143,6 +191,12 @@
|
||||
return false;
|
||||
@@ -133,8 +133,8 @@
|
||||
if (this.getWorld() == null) {
|
||||
@@ -228,7 +282,18 @@
|
||||
DedicatedServer.LOGGER.info("Starting remote control listener");
|
||||
this.m = new RemoteControlListener(this);
|
||||
this.m.a();
|
||||
this.l = new RemoteControlListener(this);
|
||||
this.l.a();
|
||||
+ this.remoteConsole = new org.bukkit.craftbukkit.command.CraftRemoteConsoleCommandSender(this.remoteControlCommandListener); // CraftBukkit
|
||||
+ }
|
||||
+
|
||||
@@ -148,21 +148,21 @@
|
||||
}
|
||||
+ // CraftBukkit end
|
||||
|
||||
if (this.ba() > 0L) {
|
||||
if (this.aY() > 0L) {
|
||||
Thread thread1 = new Thread(new ThreadWatchdog(this));
|
||||
@@ -303,11 +368,11 @@
|
||||
return crashreport;
|
||||
}
|
||||
|
||||
- protected void u() {
|
||||
+ public void u() { // CraftBukkit - decompile error
|
||||
- protected void t() {
|
||||
+ public void t() { // CraftBukkit - decompile error
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
- protected void w() {
|
||||
+ public void w() { // CraftBukkit - fix decompile error
|
||||
super.w();
|
||||
this.aW();
|
||||
- protected void b(BooleanSupplier booleansupplier) {
|
||||
+ public void b(BooleanSupplier booleansupplier) { // CraftBukkit - fix decompile error
|
||||
super.b(booleansupplier);
|
||||
this.aU();
|
||||
}
|
||||
@@ -342,7 +407,15 @@
|
||||
while (!this.serverCommandQueue.isEmpty()) {
|
||||
@@ -248,7 +248,7 @@
|
||||
}
|
||||
|
||||
public PlayerList getPlayerList() {
|
||||
return this.aX();
|
||||
return this.aV();
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
|
Reference in New Issue
Block a user