Skip to content

Commit e580ed2

Browse files
authored
Merge pull request Remynfv#2 from Mrredstone5230/patch/tick-permission
patch: change tick command permission level
2 parents 624a879 + 57b9db1 commit e580ed2

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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")

0 commit comments

Comments
 (0)