Paper/Spigot-Server-Patches/0083-Allow-Reloading-of-Custom-Permissions.patch

28 lines
844 B
Diff
Raw Normal View History

2016-04-02 04:08:40 +02:00
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
}
--
2016-03-31 02:50:23 +02:00
2.8.0