testserver/Spigot-Server-Patches/0085-Allow-Reloading-of-Cus...

28 lines
844 B
Diff
Raw Normal View History

2016-03-31 00:50:23 +00:00
From 569eaebd6555de10a0b88497b260c209c9b8d047 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 00:50:23 +00:00
2.8.0