feat: add config to enable scoreboard command unsafe
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
||||||
|
Date: Mon, 29 Sep 2025 22:56:03 +0800
|
||||||
|
Subject: [PATCH] Add config to enable scoreboard command
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java
|
||||||
|
index e0e9fcf3224f55f2ef31c8afca3154a5992f761b..6633af3cff77bcd4bcc591c032d647b7a850dced 100644
|
||||||
|
--- a/net/minecraft/commands/Commands.java
|
||||||
|
+++ b/net/minecraft/commands/Commands.java
|
||||||
|
@@ -231,7 +231,11 @@ public class Commands {
|
||||||
|
//RotateCommand.register(this.dispatcher); // Folia - region threading - TODO later
|
||||||
|
SayCommand.register(this.dispatcher);
|
||||||
|
//ScheduleCommand.register(this.dispatcher); // Folia - region threading
|
||||||
|
- //ScoreboardCommand.register(this.dispatcher, context); // Folia - region threading
|
||||||
|
+ // Lophine start - Add a config to enable scoreboard command
|
||||||
|
+ if (fun.bm.lophine.config.modules.experiment.CommandConfig.scoreboard) {
|
||||||
|
+ ScoreboardCommand.register(this.dispatcher, context); // Folia - region threading
|
||||||
|
+ }
|
||||||
|
+ // Lophine start - Add a config to enable scoreboard command
|
||||||
|
SeedCommand.register(this.dispatcher, selection != Commands.CommandSelection.INTEGRATED);
|
||||||
|
VersionCommand.register(this.dispatcher, selection != Commands.CommandSelection.INTEGRATED);
|
||||||
|
SetBlockCommand.register(this.dispatcher, context);
|
||||||
+2
-2
@@ -97,10 +97,10 @@ index c485d5b3ba95f2a969bdf0dab9654ac284976f8d..b957585cf7cf7f845e20f59c7b355722
|
|||||||
this.scheduler.regionFailed(this, false, thr);
|
this.scheduler.regionFailed(this, false, thr);
|
||||||
// regionFailed will schedule a shutdown, so we should avoid letting this region tick further
|
// regionFailed will schedule a shutdown, so we should avoid letting this region tick further
|
||||||
diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java
|
diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java
|
||||||
index e0e9fcf3224f55f2ef31c8afca3154a5992f761b..a5b59eb79c014ef7a48ff305ed554fc33a184d87 100644
|
index 6633af3cff77bcd4bcc591c032d647b7a850dced..dc5a558c72a5a7ab8a650262c6a1a2dc5142b8fc 100644
|
||||||
--- a/net/minecraft/commands/Commands.java
|
--- a/net/minecraft/commands/Commands.java
|
||||||
+++ b/net/minecraft/commands/Commands.java
|
+++ b/net/minecraft/commands/Commands.java
|
||||||
@@ -247,7 +247,11 @@ public class Commands {
|
@@ -251,7 +251,11 @@ public class Commands {
|
||||||
TeleportCommand.register(this.dispatcher);
|
TeleportCommand.register(this.dispatcher);
|
||||||
TellRawCommand.register(this.dispatcher, context);
|
TellRawCommand.register(this.dispatcher, context);
|
||||||
//TestCommand.register(this.dispatcher, context); // Folia - region threading
|
//TestCommand.register(this.dispatcher, context); // Folia - region threading
|
||||||
+2
-2
@@ -5,10 +5,10 @@ Subject: [PATCH] Add config to enable waypoint command & bar
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java
|
diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java
|
||||||
index a5b59eb79c014ef7a48ff305ed554fc33a184d87..e8c7cc10f10fc013100fa66f3489ac98b3a29227 100644
|
index dc5a558c72a5a7ab8a650262c6a1a2dc5142b8fc..9eee09ecc18abcc5972f65938ba8607dfeede026 100644
|
||||||
--- a/net/minecraft/commands/Commands.java
|
--- a/net/minecraft/commands/Commands.java
|
||||||
+++ b/net/minecraft/commands/Commands.java
|
+++ b/net/minecraft/commands/Commands.java
|
||||||
@@ -255,7 +255,11 @@ public class Commands {
|
@@ -259,7 +259,11 @@ public class Commands {
|
||||||
TimeCommand.register(this.dispatcher);
|
TimeCommand.register(this.dispatcher);
|
||||||
TitleCommand.register(this.dispatcher, context);
|
TitleCommand.register(this.dispatcher, context);
|
||||||
//TriggerCommand.register(this.dispatcher); // Folia - region threading - TODO later
|
//TriggerCommand.register(this.dispatcher); // Folia - region threading - TODO later
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
||||||
Date: Sun, 28 Sep 2025 13:21:30 +0800
|
Date: Sun, 28 Sep 2025 13:21:30 +0800
|
||||||
Subject: [PATCH] Re-add tick count support
|
Subject: [PATCH] Rewrite tickCount support
|
||||||
|
|
||||||
|
|
||||||
diff --git a/io/papermc/paper/threadedregions/TickRegionScheduler.java b/io/papermc/paper/threadedregions/TickRegionScheduler.java
|
diff --git a/io/papermc/paper/threadedregions/TickRegionScheduler.java b/io/papermc/paper/threadedregions/TickRegionScheduler.java
|
||||||
+8
-3
@@ -26,8 +26,13 @@ public class CommandConfig implements IConfigModule {
|
|||||||
|
|
||||||
@TransformedConfig(name = "enable-waypoint", directory = {"experiment", "waypoint bar"})
|
@TransformedConfig(name = "enable-waypoint", directory = {"experiment", "waypoint bar"})
|
||||||
@TransformedConfig(name = "enable-waypoint", directory = {"experiment", "waypoint_bar"})
|
@TransformedConfig(name = "enable-waypoint", directory = {"experiment", "waypoint_bar"})
|
||||||
@ConfigInfo(name = "waypoint_command_enabled", comments = """
|
@ConfigInfo(name = "waypoint_command_enabled", comments =
|
||||||
Allow to use waypoint command
|
"""
|
||||||
""")
|
Allow to use waypoint command""")
|
||||||
public static boolean waypoint = false;
|
public static boolean waypoint = false;
|
||||||
|
|
||||||
|
@ConfigInfo(name = "scoreboard_command_enabled", comments =
|
||||||
|
"""
|
||||||
|
Allow to use scoreboard command""")
|
||||||
|
public static boolean scoreboard = false;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user