From 7178332f2abce1e60265522233093c8055de54c4 Mon Sep 17 00:00:00 2001 From: willies952002 Date: Mon, 21 Mar 2016 21:29:41 -0400 Subject: [PATCH] Add Bukkit#reloadPermissions() Fix issues with Paper build #544 --- ...Add-command-to-reload-permissions.yml.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Spigot-API-Patches/Add-command-to-reload-permissions.yml.patch b/Spigot-API-Patches/Add-command-to-reload-permissions.yml.patch index dca257c370..c3fad7917c 100644 --- a/Spigot-API-Patches/Add-command-to-reload-permissions.yml.patch +++ b/Spigot-API-Patches/Add-command-to-reload-permissions.yml.patch @@ -5,6 +5,24 @@ Subject: [PATCH] Add command to reload permissions.yml https://github.com/PaperMC/Paper/issues/49 +diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/Bukkit.java ++++ b/src/main/java/org/bukkit/Bukkit.java +@@ -0,0 +0,0 @@ public final class Bukkit { + public static CommandMap getCommandMap() { + return server.getCommandMap(); + } ++ ++ /** ++ * Reload the Permissions in permissions.yml ++ */ ++ public static void reloadPermissions() { ++ server.reloadPermissions(); ++ } + // Paper end + + public static Server.Spigot spigot() diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/Server.java