File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+ From: Mrredstone5230 <45701824+Mrredstone5230@users.noreply.github.com>
3+ Date: Thu, 11 Jul 2024 01:44:00 -0700
4+ Subject: [PATCH] Change tick command permission level
5+
6+ This allows the tick command to be used by command blocks and functions.
7+
8+ diff --git a/src/main/java/net/minecraft/server/commands/TickCommand.java b/src/main/java/net/minecraft/server/commands/TickCommand.java
9+ index 5ce845a9c..df4f4021b 100644
10+ --- a/src/main/java/net/minecraft/server/commands/TickCommand.java
11+ +++ b/src/main/java/net/minecraft/server/commands/TickCommand.java
12+ @@ -19,7 +19,7 @@ public class TickCommand {
13+ public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
14+ dispatcher.register(
15+ Commands.literal("tick")
16+ - .requires(source -> source.hasPermission(3))
17+ + .requires(source -> source.hasPermission(2))
18+ .then(Commands.literal("query").executes(context -> tickQuery(context.getSource())))
19+ .then(
20+ Commands.literal("rate")
You can’t perform that action at this time.
0 commit comments