mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
25 lines
894 B
Diff
25 lines
894 B
Diff
|
From 0000000000000000000000000000000000000000 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||
|
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
||
|
{
|
||
|
return spigot;
|
||
|
}
|
||
|
+
|
||
|
+ // Paper start
|
||
|
+ @Override
|
||
|
+ public void reloadPermissions() {
|
||
|
+ ((SimplePluginManager) pluginManager).clearPermissions();
|
||
|
+ loadCustomPermissions();
|
||
|
+ }
|
||
|
+ // Paper end
|
||
|
}
|
||
|
--
|