2016-04-02 04:08:40 +02:00
|
|
|
From e0e3c0e65de60a9fcf351793df48a9b1fc8a5624 Mon Sep 17 00:00:00 2001
|
2016-03-19 21:19:00 +01:00
|
|
|
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
|
2016-03-28 03:48:50 +02:00
|
|
|
index 8ffc06b..29244e1 100644
|
2016-03-19 21:19:00 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2016-03-28 03:48:50 +02:00
|
|
|
@@ -1838,4 +1838,12 @@ public final class CraftServer implements Server {
|
2016-03-19 21:19:00 +01:00
|
|
|
{
|
|
|
|
return spigot;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Paper start
|
|
|
|
+ @Override
|
|
|
|
+ public void reloadPermissions() {
|
|
|
|
+ ((SimplePluginManager) pluginManager).clearPermissions();
|
|
|
|
+ loadCustomPermissions();
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
--
|
2016-03-31 02:50:23 +02:00
|
|
|
2.8.0
|
2016-03-19 21:19:00 +01:00
|
|
|
|