Allow non-op players to execute the click event callback (#9652)

This commit is contained in:
Md5Lukas
2023-08-28 13:21:13 +02:00
parent a0632a8f06
commit 7366520a54
7 changed files with 48 additions and 45 deletions

View File

@@ -1292,7 +1292,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ @Override
+ public @NotNull ClickEvent create(final @NotNull ClickCallback<Audience> callback, final ClickCallback.@NotNull Options options) {
+ return ClickEvent.runCommand("/paper callback " + CALLBACK_MANAGER.addCallback(callback, options));
+ return ClickEvent.runCommand("/paper:callback " + CALLBACK_MANAGER.addCallback(callback, options));
+ }
+
+ public static final class CallbackManager {