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

28 lines
844 B
Diff
Raw Normal View History

2016-04-14 03:18:46 +00:00
From f16d9f3d2bd240842f3320382d4b11f5d9df0647 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
2016-04-14 03:18:46 +00:00
index 5b91630..ab18e1a 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2016-04-14 03:18:46 +00:00
@@ -1834,4 +1834,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