{"action":"created","comment":{"url":"https://api.github.com/repos/PaperMC/Paper/pulls/comments/56754102","id":56754102,"diff_hunk":"@@ -0,0 +1,106 @@\n+From cb7615955f260407f3044b8203009b0fe4bde6e3 Mon Sep 17 00:00:00 2001\n+From: William <admin@domnian.com>\n+Date: Fri, 18 Mar 2016 03:28:07 -0400\n+Subject: [PATCH] Add command to reload permissions.yml\n+\n+https://github.com/PaperMC/Paper/issues/49\n+\n+diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java\n+index f93ca2e..cd73bfa 100644\n+--- a/src/main/java/org/bukkit/Bukkit.java\n++++ b/src/main/java/org/bukkit/Bukkit.java\n+@@ -1188,4 +1188,11 @@ public final class Bukkit {\n+     {\n+         return server.spigot();\n+     }\n++\n++    // Paper start\n++    public static void reloadPermissions() {\n++        server.reloadPermissions();\n++    }\n++    // Paper end\n++\n+ }\n+diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java\n+index 91bde81..6b1f2a4 100644\n+--- a/src/main/java/org/bukkit/Server.java\n++++ b/src/main/java/org/bukkit/Server.java\n+@@ -1018,4 +1018,6 @@ public interface Server extends PluginMessageRecipient {\n+     }\n+ \n+     Spigot spigot();\n++\n++    void reloadPermissions(); // Paper\n+ }\n+diff --git a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java\n+index c70d512..480f5f9 100644\n+--- a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java\n++++ b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java\n+@@ -4,6 +4,7 @@ import java.util.Arrays;\n+ \n+ import org.bukkit.Bukkit;\n+ import org.bukkit.ChatColor;\n++import org.bukkit.Server;\n+ import org.bukkit.command.Command;\n+ import org.bukkit.command.CommandSender;\n+ \n+@@ -11,15 +12,26 @@ public class ReloadCommand extends BukkitCommand {\n+     public ReloadCommand(String name) {\n+         super(name);\n+         this.description = \"Reloads the server configuration and plugins\";\n+-        this.usageMessage = \"/reload\";\n++        this.usageMessage = \"/reload [perms|permissions]\"; // Paper\n+         this.setPermission(\"bukkit.command.reload\");\n+         this.setAliases(Arrays.asList(\"rl\"));\n+     }\n+ \n+     @Override\n+     public boolean execute(CommandSender sender, String currentAlias, String[] args) {\n++\n+         if (!testPermission(sender)) return true;\n+ \n++        // Paper Start - Reload permissions.yml (PAPER-49)\n++        if (args.length == 1) {\n++            if (args[0].equalsIgnoreCase(\"permissions\") || args[0].equalsIgnoreCase(\"perms\")) {\n++                Bukkit.reloadPermissions();\n++                Command.broadcastCommandMessage(sender, ChatColor.GREEN + \"Permissions successufully reloaded.\");\n++                return true;\n++            }\n++        }\n++        // Paper End","path":"Spigot-API-Patches/0026-Add-command-to-reload-permissions.yml.patch","position":70,"original_position":70,"commit_id":"235fed368c2943ac266fb3f29db90f0de616169e","original_commit_id":"235fed368c2943ac266fb3f29db90f0de616169e","user":{"login":"kashike","id":5474071,"avatar_url":"https://avatars.githubusercontent.com/u/5474071?v=3","gravatar_id":"","url":"https://api.github.com/users/kashike","html_url":"https://github.com/kashike","followers_url":"https://api.github.com/users/kashike/followers","following_url":"https://api.github.com/users/kashike/following{/other_user}","gists_url":"https://api.github.com/users/kashike/gists{/gist_id}","starred_url":"https://api.github.com/users/kashike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashike/subscriptions","organizations_url":"https://api.github.com/users/kashike/orgs","repos_url":"https://api.github.com/users/kashike/repos","events_url":"https://api.github.com/users/kashike/events{/privacy}","received_events_url":"https://api.github.com/users/kashike/received_events","type":"User","site_admin":false},"body":"End -> end, to be consistent","created_at":"2016-03-19T19:48:30Z","updated_at":"2016-03-19T19:48:30Z","html_url":"https://github.com/PaperMC/Paper/pull/91#discussion_r56754102","pull_request_url":"https://api.github.com/repos/PaperMC/Paper/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/comments/56754102"},"html":{"href":"https://github.com/PaperMC/Paper/pull/91#discussion_r56754102"},"pull_request":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/PaperMC/Paper/pulls/91","id":63417886,"html_url":"https://github.com/PaperMC/Paper/pull/91","diff_url":"https://github.com/PaperMC/Paper/pull/91.diff","patch_url":"https://github.com/PaperMC/Paper/pull/91.patch","issue_url":"https://api.github.com/repos/PaperMC/Paper/issues/91","number":91,"state":"open","locked":false,"title":"Allow Reloading of Custom Permissions","user":{"login":"willies952002","id":2641285,"avatar_url":"https://avatars.githubusercontent.com/u/2641285?v=3","gravatar_id":"","url":"https://api.github.com/users/willies952002","html_url":"https://github.com/willies952002","followers_url":"https://api.github.com/users/willies952002/followers","following_url":"https://api.github.com/users/willies952002/following{/other_user}","gists_url":"https://api.github.com/users/willies952002/gists{/gist_id}","starred_url":"https://api.github.com/users/willies952002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willies952002/subscriptions","organizations_url":"https://api.github.com/users/willies952002/orgs","repos_url":"https://api.github.com/users/willies952002/repos","events_url":"https://api.github.com/users/willies952002/events{/privacy}","received_events_url":"https://api.github.com/users/willies952002/received_events","type":"User","site_admin":false},"body":"Add the ability to reload the custom permissions file by doing \"/reload perms\"\r\nImplements Feature Request: https://github.com/PaperMC/Paper/issues/49\r\n\r\nSorry about reposting/recreating this, but I was unable to re-open the original PR.","created_at":"2016-03-18T18:33:09Z","updated_at":"2016-03-19T19:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fefbcd1c4bd54525105f6e38668ca6076fb45518","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PaperMC/Paper/pulls/91/commits","review_comments_url":"https://api.github.com/repos/PaperMC/Paper/pulls/91/comments","review_comment_url":"https://api.github.com/repos/PaperMC/Paper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaperMC/Paper/issues/91/comments","statuses_url":"https://api.github.com/repos/PaperMC/Paper/statuses/235fed368c2943ac266fb3f29db90f0de616169e","head":{"label":"willies952002:feature/permReload","ref":"feature/permReload","sha":"235fed368c2943ac266fb3f29db90f0de616169e","user":{"login":"willies952002","id":2641285,"avatar_url":"https://avatars.githubusercontent.com/u/2641285?v=3","gravatar_id":"","url":"https://api.github.com/users/willies952002","html_url":"https://github.com/willies952002","followers_url":"https://api.github.com/users/willies952002/followers","following_url":"https://api.github.com/users/willies952002/following{/other_user}","gists_url":"https://api.github.com/users/willies952002/gists{/gist_id}","starred_url":"https://api.github.com/users/willies952002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willies952002/subscriptions","organizations_url":"https://api.github.com/users/willies952002/orgs","repos_url":"https://api.github.com/users/willies952002/repos","events_url":"https://api.github.com/users/willies952002/events{/privacy}","received_events_url":"https://api.github.com/users/willies952002/received_events","type":"User","site_admin":false},"repo":{"id":53974980,"name":"Paper","full_name":"willies952002/Paper","owner":{"login":"willies952002","id":2641285,"avatar_url":"https://avatars.githubusercontent.com/u/2641285?v=3","gravatar_id":"","url":"https://api.github.com/users/willies952002","html_url":"https://github.com/willies952002","followers_url":"https://api.github.com/users/willies952002/followers","following_url":"https://api.github.com/users/willies952002/following{/other_user}","gists_url":"https://api.github.com/users/willies952002/gists{/gist_id}","starred_url":"https://api.github.com/users/willies952002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willies952002/subscriptions","organizations_url":"https://api.github.com/users/willies952002/orgs","repos_url":"https://api.github.com/users/willies952002/repos","events_url":"https://api.github.com/users/willies952002/events{/privacy}","received_events_url":"https://api.github.com/users/willies952002/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willies952002/Paper","description":"High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.","fork":true,"url":"https://api.github.com/repos/willies952002/Paper","forks_url":"https://api.github.com/repos/willies952002/Paper/forks","keys_url":"https://api.github.com/repos/willies952002/Paper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willies952002/Paper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willies952002/Paper/teams","hooks_url":"https://api.github.com/repos/willies952002/Paper/hooks","issue_events_url":"https://api.github.com/repos/willies952002/Paper/issues/events{/number}","events_url":"https://api.github.com/repos/willies952002/Paper/events","assignees_url":"https://api.github.com/repos/willies952002/Paper/assignees{/user}","branches_url":"https://api.github.com/repos/willies952002/Paper/branches{/branch}","tags_url":"https://api.github.com/repos/willies952002/Paper/tags","blobs_url":"https://api.github.com/repos/willies952002/Paper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willies952002/Paper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willies952002/Paper/git/refs{/sha}","trees_url":"https://api.github.com/repos/willies952002/Paper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willies952002/Paper/statuses/{sha}","languages_url":"https://api.github.com/repos/willies952002/Paper/languages","stargazers_url":"https://api.github.com/repos/willies952002/Paper/stargazers","contributors_url":"https://api.github.com/repos/willies952002/Paper/contributors","subscribers_url":"https://api.github.com/repos/willies952002/Paper/subscribers","subscription_url":"https://api.github.com/repos/willies952002/Paper/subscription","commits_url":"https://api.github.com/repos/willies952002/Paper/commits{/sha}","git_commits_url":"https://api.github.com/repos/willies952002/Paper/git/commits{/sha}","comments_url":"https://api.github.com/repos/willies952002/Paper/comments{/number}","issue_comment_url":"https://api.github.com/repos/willies952002/Paper/issues/comments{/number}","contents_url":"https://api.github.com/repos/willies952002/Paper/contents/{+path}","compare_url":"https://api.github.com/repos/willies952002/Paper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willies952002/Paper/merges","archive_url":"https://api.github.com/repos/willies952002/Paper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willies952002/Paper/downloads","issues_url":"https://api.github.com/repos/willies952002/Paper/issues{/number}","pulls_url":"https://api.github.com/repos/willies952002/Paper/pulls{/number}","milestones_url":"https://api.github.com/repos/willies952002/Paper/milestones{/number}","notifications_url":"https://api.github.com/repos/willies952002/Paper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willies952002/Paper/labels{/name}","releases_url":"https://api.github.com/repos/willies952002/Paper/releases{/id}","deployments_url":"https://api.github.com/repos/willies952002/Paper/deployments","created_at":"2016-03-15T20:08:44Z","updated_at":"2016-03-15T20:08:45Z","pushed_at":"2016-03-19T19:09:40Z","git_url":"git://github.com/willies952002/Paper.git","ssh_url":"git@github.com:willies952002/Paper.git","clone_url":"https://github.com/willies952002/Paper.git","svn_url":"https://github.com/willies952002/Paper","homepage":"https://aquifermc.org/","size":4943,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PaperMC:master","ref":"master","sha":"b41bd5a1e2a35d0c0a379a46b877b134550fbbd0","user":{"login":"PaperMC","id":7608950,"avatar_url":"https://avatars.githubusercontent.com/u/7608950?v=3","gravatar_id":"","url":"https://api.github.com/users/PaperMC","html_url":"https://github.com/PaperMC","followers_url":"https://api.github.com/users/PaperMC/followers","following_url":"https://api.github.com/users/PaperMC/following{/other_user}","gists_url":"https://api.github.com/users/PaperMC/gists{/gist_id}","starred_url":"https://api.github.com/users/PaperMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaperMC/subscriptions","organizations_url":"https://api.github.com/users/PaperMC/orgs","repos_url":"https://api.github.com/users/PaperMC/repos","events_url":"https://api.github.com/users/PaperMC/events{/privacy}","received_events_url":"https://api.github.com/users/PaperMC/received_events","type":"Organization","site_admin":false},"repo":{"id":50160261,"name":"Paper","full_name":"PaperMC/Paper","owner":{"login":"PaperMC","id":7608950,"avatar_url":"https://avatars.githubusercontent.com/u/7608950?v=3","gravatar_id":"","url":"https://api.github.com/users/PaperMC","html_url":"https://github.com/PaperMC","followers_url":"https://api.github.com/users/PaperMC/followers","following_url":"https://api.github.com/users/PaperMC/following{/other_user}","gists_url":"https://api.github.com/users/PaperMC/gists{/gist_id}","starred_url":"https://api.github.com/users/PaperMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaperMC/subscriptions","organizations_url":"https://api.github.com/users/PaperMC/orgs","repos_url":"https://api.github.com/users/PaperMC/repos","events_url":"https://api.github.com/users/PaperMC/events{/privacy}","received_events_url":"https://api.github.com/users/PaperMC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaperMC/Paper","description":"High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.","fork":false,"url":"https://api.github.com/repos/PaperMC/Paper","forks_url":"https://api.github.com/repos/PaperMC/Paper/forks","keys_url":"https://api.github.com/repos/PaperMC/Paper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaperMC/Paper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaperMC/Paper/teams","hooks_url":"https://api.github.com/repos/PaperMC/Paper/hooks","issue_events_url":"https://api.github.com/repos/PaperMC/Paper/issues/events{/number}","events_url":"https://api.github.com/repos/PaperMC/Paper/events","assignees_url":"https://api.github.com/repos/PaperMC/Paper/assignees{/user}","branches_url":"https://api.github.com/repos/PaperMC/Paper/branches{/branch}","tags_url":"https://api.github.com/repos/PaperMC/Paper/tags","blobs_url":"https://api.github.com/repos/PaperMC/Paper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaperMC/Paper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaperMC/Paper/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaperMC/Paper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaperMC/Paper/statuses/{sha}","languages_url":"https://api.github.com/repos/PaperMC/Paper/languages","stargazers_url":"https://api.github.com/repos/PaperMC/Paper/stargazers","contributors_url":"https://api.github.com/repos/PaperMC/Paper/contributors","subscribers_url":"https://api.github.com/repos/PaperMC/Paper/subscribers","subscription_url":"https://api.github.com/repos/PaperMC/Paper/subscription","commits_url":"https://api.github.com/repos/PaperMC/Paper/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaperMC/Paper/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaperMC/Paper/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaperMC/Paper/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaperMC/Paper/contents/{+path}","compare_url":"https://api.github.com/repos/PaperMC/Paper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaperMC/Paper/merges","archive_url":"https://api.github.com/repos/PaperMC/Paper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaperMC/Paper/downloads","issues_url":"https://api.github.com/repos/PaperMC/Paper/issues{/number}","pulls_url":"https://api.github.com/repos/PaperMC/Paper/pulls{/number}","milestones_url":"https://api.github.com/repos/PaperMC/Paper/milestones{/number}","notifications_url":"https://api.github.com/repos/PaperMC/Paper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaperMC/Paper/labels{/name}","releases_url":"https://api.github.com/repos/PaperMC/Paper/releases{/id}","deployments_url":"https://api.github.com/repos/PaperMC/Paper/deployments","created_at":"2016-01-22T05:40:19Z","updated_at":"2016-03-19T17:29:07Z","pushed_at":"2016-03-19T19:27:16Z","git_url":"git://github.com/PaperMC/Paper.git","ssh_url":"git@github.com:PaperMC/Paper.git","clone_url":"https://github.com/PaperMC/Paper.git","svn_url":"https://github.com/PaperMC/Paper","homepage":"https://aquifermc.org/","size":5821,"stargazers_count":44,"watchers_count":44,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":25,"forks":25,"open_issues":25,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/91"},"html":{"href":"https://github.com/PaperMC/Paper/pull/91"},"issue":{"href":"https://api.github.com/repos/PaperMC/Paper/issues/91"},"comments":{"href":"https://api.github.com/repos/PaperMC/Paper/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/PaperMC/Paper/statuses/235fed368c2943ac266fb3f29db90f0de616169e"}}}}