Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
28 Zeilen
844 B
Diff
28 Zeilen
844 B
Diff
From e0e3c0e65de60a9fcf351793df48a9b1fc8a5624 Mon Sep 17 00:00:00 2001
|
|
From: William <admin@domnian.com>
|
|
Date: Fri, 18 Mar 2016 03:30:17 -0400
|
|
Subject: [PATCH] Allow Reloading of Custom Permissions
|
|
|
|
https://github.com/PaperMC/Paper/issues/49
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
index 8ffc06b..29244e1 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
@@ -1838,4 +1838,12 @@ public final class CraftServer implements Server {
|
|
{
|
|
return spigot;
|
|
}
|
|
+
|
|
+ // Paper start
|
|
+ @Override
|
|
+ public void reloadPermissions() {
|
|
+ ((SimplePluginManager) pluginManager).clearPermissions();
|
|
+ loadCustomPermissions();
|
|
+ }
|
|
+ // Paper end
|
|
}
|
|
--
|
|
2.8.0
|
|
|