mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-03 14:22:30 +00:00
misc
This commit is contained in:
@@ -31,7 +31,6 @@ import com.volmit.iris.core.nms.INMS;
|
||||
import com.volmit.iris.core.nms.v1X.NMSBinding1X;
|
||||
import com.volmit.iris.core.pregenerator.LazyPregenerator;
|
||||
import com.volmit.iris.core.safeguard.ServerBootSFG;
|
||||
import com.volmit.iris.core.service.ChunkHandlerSVC;
|
||||
import com.volmit.iris.core.service.HotDropWorldSVC;
|
||||
import com.volmit.iris.core.service.StudioSVC;
|
||||
import com.volmit.iris.core.tools.IrisToolbelt;
|
||||
@@ -444,7 +443,6 @@ public class Iris extends VolmitPlugin implements Listener {
|
||||
private static void fixShading() {
|
||||
ShadeFix.fix(ComponentSerializer.class);
|
||||
}
|
||||
private ChunkHandlerSVC chunkHandlerSVC;
|
||||
private void enable() {
|
||||
instance = this;
|
||||
services = new KMap<>();
|
||||
@@ -476,11 +474,6 @@ public class Iris extends VolmitPlugin implements Listener {
|
||||
UtilsSFG.SupportedServerSoftware();
|
||||
UtilsSFG.printIncompatibleWarnings();
|
||||
UtilsSFG.unstablePrompt();
|
||||
if(IrisSettings.get().getGeneral().useIntegratedChunkHandler) {
|
||||
chunkHandlerSVC = new ChunkHandlerSVC(this);
|
||||
Iris.info(C.LIGHT_PURPLE + "Started Intergrated ChunkHandlerSVC");
|
||||
}
|
||||
|
||||
HotDropWorldSVC hotDropWorldSVC = new HotDropWorldSVC(this);
|
||||
hotDropWorldSVC.start();
|
||||
|
||||
|
||||
@@ -126,7 +126,6 @@ public class IrisSettings {
|
||||
public boolean markerEntitySpawningSystem = true;
|
||||
public boolean effectSystem = true;
|
||||
public boolean worldEditWandCUI = true;
|
||||
public boolean AutoFindIrisWorlds = false;
|
||||
}
|
||||
|
||||
@Data
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
package com.volmit.iris.core.safeguard;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.core.IrisSettings;
|
||||
import com.volmit.iris.util.format.C;
|
||||
|
||||
public class IrisSafeguard {
|
||||
// more planned and WIP
|
||||
public static boolean unstablemode = false;
|
||||
public static void IrisSafeguardSystem() {
|
||||
Iris.info("Enabled Iris SafeGuard");
|
||||
|
||||
@@ -77,7 +77,6 @@ public class ServerBootSFG {
|
||||
}
|
||||
}
|
||||
public static void CheckIrisWorlds() {
|
||||
if (IrisSettings.get().getWorld().AutoFindIrisWorlds) {
|
||||
StringJoiner joiner = new StringJoiner(", ");
|
||||
|
||||
// Get the main server folder
|
||||
@@ -108,6 +107,5 @@ public class ServerBootSFG {
|
||||
}
|
||||
// No Idea what I should do with this
|
||||
String worldsList = joiner.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
public class ChunkHandlerSVC implements Listener {
|
||||
// Idk how it works but it works lol
|
||||
// Does nothing for now
|
||||
private final JavaPlugin plugin;
|
||||
private static BukkitTask task;
|
||||
private final Map<World, ChunkUnloader> worlds = new ConcurrentHashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user