mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 17:27:41 +01:00
892fca2c4c
Resolves a really weird race condition where the console sender could lose permission to execute commands defined in plugin.yml with default=op
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Sun, 16 Jul 2017 20:40:26 -0400
|
|
Subject: [PATCH] SPIGOT-3427: Recalculate ConsoleSender permissions after
|
|
plugins have loaded
|
|
|
|
Resolves a really weird race condition where the console sender could lose permission to execute
|
|
commands defined in plugin.yml with default=op
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
index 9ef2e4a55..938602af1 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
|
if (!com.destroystokyo.paper.PaperConfig.loadPermsBeforePlugins) loadCustomPermissions(); // Paper
|
|
DefaultPermissions.registerCorePermissions();
|
|
CraftDefaultPermissions.registerCorePermissions();
|
|
+ getConsoleSender().recalculatePermissions(); // Paper - SPIGOT-3427
|
|
helpMap.initializeCommands();
|
|
}
|
|
}
|
|
--
|