869ab5202e
Add the ability to reload the custom permissions file by doing "/reload permissions" Implements Feature Request: https://github.com/PaperMC/Paper/issues/49
27 lines
844 B
Diff
27 lines
844 B
Diff
From 8b0fab818c1a07dab47347144e4b53e395cf4e99 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 cb9906a..3977bff 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
@@ -1833,4 +1833,12 @@ public final class CraftServer implements Server {
|
|
{
|
|
return spigot;
|
|
}
|
|
+
|
|
+ // Paper start
|
|
+ @Override
|
|
+ public void reloadPermissions() {
|
|
+ ((SimplePluginManager) pluginManager).clearPermissions();
|
|
+ loadCustomPermissions();
|
|
+ }
|
|
+ // Paper end
|
|
}
|
|
--
|
|
2.5.0
|
|
|