You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23071,7 +23071,7 @@ index be6e4b5e485e10d37b5194c214f69b677622cc8a..bdaca3647425711ee8b10eb0593a9c3c
23071
23071
private static MinecraftServer SERVER; // Paper
23072
23072
public static final Logger LOGGER = LogUtils.getLogger();
23073
23073
public static final net.kyori.adventure.text.logger.slf4j.ComponentLogger COMPONENT_LOGGER = net.kyori.adventure.text.logger.slf4j.ComponentLogger.logger(LOGGER.getName()); // Paper
23074
-
@@ -397,6 +397,93 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23074
+
@@ -398,6 +398,93 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23075
23075
return minecraftServer;
23076
23076
}
23077
23077
@@ -23165,7 +23165,7 @@ index be6e4b5e485e10d37b5194c214f69b677622cc8a..bdaca3647425711ee8b10eb0593a9c3c
23165
23165
public MinecraftServer(
23166
23166
// CraftBukkit start
23167
23167
joptsimple.OptionSet options,
23168
-
@@ -827,7 +914,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23168
+
@@ -828,7 +915,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23169
23169
serverLevel.setSpawnSettings(serverLevel.serverLevelData.getDifficulty() != Difficulty.PEACEFUL && serverLevel.getGameRules().get(GameRules.SPAWN_MONSTERS)); // Paper - per level difficulty (from setDifficulty(ServerLevel, Difficulty, boolean))
23170
23170
this.updateEffectiveRespawnData();
23171
23171
this.forceTicks = false; // CraftBukkit
@@ -23174,7 +23174,7 @@ index be6e4b5e485e10d37b5194c214f69b677622cc8a..bdaca3647425711ee8b10eb0593a9c3c
23174
23174
new org.bukkit.event.world.WorldLoadEvent(serverLevel.getWorld()).callEvent(); // Paper - call WorldLoadEvent
23175
23175
}
23176
23176
23177
-
@@ -850,6 +937,11 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23177
+
@@ -851,6 +938,11 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
23178
23178
public abstract boolean shouldRconBroadcast();
23179
23179
23180
23180
public boolean saveAllChunks(boolean suppressLogs, boolean flush, boolean force) {
@@ -23186,7 +23186,7 @@ index be6e4b5e485e10d37b5194c214f69b677622cc8a..bdaca3647425711ee8b10eb0593a9c3c
Copy file name to clipboardExpand all lines: paper-server/patches/sources/net/minecraft/commands/Commands.java.patch
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,30 @@
8
8
public static final String COMMAND_PREFIX = "/";
9
9
private static final ThreadLocal<@Nullable ExecutionContext<CommandSourceStack>> CURRENT_EXECUTION_CONTEXT = new ThreadLocal<>();
10
10
private static final Logger LOGGER = LogUtils.getLogger();
11
-
@@ -179,6 +_,7 @@
11
+
@@ -164,7 +_,7 @@
12
+
public static final PermissionCheck LEVEL_ADMINS = new PermissionCheck.Require(Permissions.COMMANDS_ADMIN);
13
+
public static final PermissionCheck LEVEL_OWNERS = new PermissionCheck.Require(Permissions.COMMANDS_OWNER);
14
+
private static final ClientboundCommandsPacket.NodeInspector<CommandSourceStack> COMMAND_NODE_INSPECTOR = new ClientboundCommandsPacket.NodeInspector<CommandSourceStack>() {
15
+
- private final CommandSourceStack noPermissionSource = Commands.createCompilationContext(PermissionSet.NO_PERMISSIONS);
16
+
+ private final CommandSourceStack noPermissionSource = Commands.createCompilationContext(PermissionSet.NO_PERMISSIONS); // Paper - diff on change - don't violate API contracts for location nullability
17
+
18
+
@Override
19
+
public @Nullable Identifier suggestionId(ArgumentCommandNode<CommandSourceStack, ?> node) {
20
+
@@ -179,13 +_,25 @@
12
21
13
22
@Override
14
23
public boolean isRestricted(CommandNode<CommandSourceStack> node) {
15
24
+ if (node.getRequirement() instanceof RestrictedMarker) return true; // Paper - restricted api
0 commit comments