-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create 0042-Change-profiler-permission.patch
- Loading branch information
1 parent
432987c
commit fb646ca
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: AltronMaxX <[email protected]> | ||
Date: Wed, 7 Aug 2024 17:07:26 +0400 | ||
Subject: [PATCH] Change '/profiler' permission | ||
|
||
|
||
diff --git a/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java b/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java | ||
index e36fd244f71a92d11c6ee45944948be5c1be2932..e2f2f288897cf0c2db3eba7aa5562f6edec23892 100644 | ||
--- a/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java | ||
+++ b/src/main/java/io/papermc/paper/threadedregions/commands/CommandProfiler.java | ||
@@ -52,7 +52,7 @@ public final class CommandProfiler extends Command { | ||
super("profiler"); | ||
this.setUsage("/<command> <world> <block x> <block z> <time in s> [radius, default 100 blocks]"); | ||
this.setDescription("Reports information about server health."); | ||
- this.setPermission("bukkit.command.tps"); | ||
+ this.setPermission("paper.profiler"); | ||
} | ||
|
||
@Override |