Dieser Commit ist enthalten in:
Ursprung
2b779ab40b
Commit
7679998285
@ -60,7 +60,12 @@ public class CheckpointUtils {
|
||||
Bukkit.getOnlinePlayers().forEach(player -> player.kickPlayer(null));
|
||||
|
||||
List<?> networkManagers = TinyProtocol.networkManagers.get(TinyProtocol.getServerConnection(Core.getInstance()));
|
||||
if(networkManagers.isEmpty()) {
|
||||
if(!networkManagers.isEmpty()) {
|
||||
Core.getInstance().getLogger().log(Level.INFO, "Waiting for players to disconnect for checkpointing");
|
||||
Bukkit.getScheduler().runTaskLater(Core.getInstance(), CheckpointUtils::freeze, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
Path path = FileSystems.getDefault().getPath(checkpointFile);
|
||||
|
||||
try {
|
||||
@ -76,11 +81,6 @@ public class CheckpointUtils {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Core.getInstance().getLogger().log(Level.INFO, "Waiting for players to disconnect for checkpointing");
|
||||
Bukkit.getScheduler().runTaskLater(Core.getInstance(), CheckpointUtils::freeze, 1);
|
||||
}
|
||||
|
||||
private static final Reflection.FieldAccessor<List> channelFutures = Reflection.getField(TinyProtocol.serverConnection, List.class, 0, ChannelFuture.class);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren