Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
I'm quite aware that I fail at merging.
Dieser Commit ist enthalten in:
Ursprung
919023fe5d
Commit
172db788b3
@ -294,6 +294,8 @@ public class MinecraftServer implements ICommandListener, Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
((CraftScheduler) server.getScheduler()).mainThreadHeartbeat(this.h);
|
||||
|
||||
for (WorldServer world : worlds) {
|
||||
world.f();
|
||||
|
||||
@ -301,11 +303,6 @@ public class MinecraftServer implements ICommandListener, Runnable {
|
||||
;
|
||||
}
|
||||
|
||||
;
|
||||
((CraftScheduler) server.getScheduler()).mainThreadHeartbeat(this.h);
|
||||
|
||||
while (this.e.d()) {
|
||||
;
|
||||
world.c();
|
||||
}
|
||||
// Craftbukkit end
|
||||
|
@ -11,6 +11,7 @@ import net.minecraft.server.EntityPlayer;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.PropertyManager;
|
||||
import net.minecraft.server.ServerConfigurationManager;
|
||||
import net.minecraft.server.WorldManager;
|
||||
import net.minecraft.server.WorldServer;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
@ -153,8 +154,16 @@ public final class CraftServer implements Server {
|
||||
return scheduler;
|
||||
}
|
||||
|
||||
public World[] getWorlds() {
|
||||
return console.worlds.toArray(new World[0]);
|
||||
public List<World> getWorlds() {
|
||||
List<World> worlds = new ArrayList<World>();
|
||||
|
||||
synchronized (console.worlds) {
|
||||
for (WorldServer world : console.worlds) {
|
||||
worlds.add(world.getWorld());
|
||||
}
|
||||
}
|
||||
|
||||
return worlds;
|
||||
}
|
||||
|
||||
public ServerConfigurationManager getHandle() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren