Skip to content

Commit 642d698

Browse files
refactor(punishment): remove unrelated terminal feature
Remove MinestomTerminal, MinestomCompleter, jline dependencies, and terminal config setting. This feature should be in a separate PR.
1 parent fe60040 commit 642d698

5 files changed

Lines changed: 0 additions & 146 deletions

File tree

commons/src/main/java/net/swofty/commons/config/Settings.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ public class Settings {
2828
@Comment("Whether to enable sandbox features (such as editing items)")
2929
private boolean sandbox = false;
3030

31-
@Comment("Whether to enable the terminal for Minestom backend servers")
32-
private boolean terminal = false;
33-
3431
@Comment("Integrations with services")
3532
private IntegrationSettings integrations = new IntegrationSettings();
3633

type.generic/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ dependencies {
2525
implementation(project(":proxy.api"))
2626
implementation("org.mongodb:bson:5.6.2")
2727
implementation("org.mongodb:mongodb-driver-sync:5.6.2")
28-
implementation("org.jline:jline-terminal:3.30.6")
29-
implementation("org.jline:jline-reader:3.30.6")
3028
// Must match AtlasRedisAPI's Jedis version to avoid conflicts
3129
implementation("redis.clients:jedis:4.2.3")
3230
implementation("org.tinylog:tinylog-api:2.7.0")

type.generic/src/main/java/net/swofty/type/generic/HypixelGenericLoader.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import net.swofty.type.generic.packet.HypixelPacketServerListener;
4949
import net.swofty.type.generic.quest.QuestRegistry;
5050
import net.swofty.type.generic.redis.RedisOriginServer;
51-
import net.swofty.type.generic.terminal.MinestomTerminal;
5251
import net.swofty.type.generic.user.HypixelPlayer;
5352
import org.jetbrains.annotations.Nullable;
5453
import org.reflections.Reflections;
@@ -248,13 +247,6 @@ public void initialize(MinecraftServer server) {
248247
});
249248
}
250249

251-
if (ConfigProvider.settings().isTerminal()) {
252-
try (MinestomTerminal terminal = new MinestomTerminal(MinecraftServer.getCommandManager())) {
253-
terminal.start();
254-
} catch (Exception e) {
255-
Logger.warn(e, "Failed to start Minestom terminal.");
256-
}
257-
}
258250
}
259251

260252
public static List<HypixelPlayer> getLoadedPlayers() {

type.generic/src/main/java/net/swofty/type/generic/terminal/MinestomCompleter.java

Lines changed: 0 additions & 47 deletions
This file was deleted.

type.generic/src/main/java/net/swofty/type/generic/terminal/MinestomTerminal.java

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)