{"action":"created","issue":{"url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin/issues/451","repository_url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin","labels_url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin/issues/451/comments","events_url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin/issues/451/events","html_url":"https://github.com/Ben12345rocks/VotingPlugin/issues/451","id":383178796,"node_id":"MDU6SXNzdWUzODMxNzg3OTY=","number":451,"title":"Permissions issue with tabcomplete","user":{"login":"LogGits","id":26944626,"node_id":"MDQ6VXNlcjI2OTQ0NjI2","avatar_url":"https://avatars1.githubusercontent.com/u/26944626?v=4","gravatar_id":"","url":"https://api.github.com/users/LogGits","html_url":"https://github.com/LogGits","followers_url":"https://api.github.com/users/LogGits/followers","following_url":"https://api.github.com/users/LogGits/following{/other_user}","gists_url":"https://api.github.com/users/LogGits/gists{/gist_id}","starred_url":"https://api.github.com/users/LogGits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogGits/subscriptions","organizations_url":"https://api.github.com/users/LogGits/orgs","repos_url":"https://api.github.com/users/LogGits/repos","events_url":"https://api.github.com/users/LogGits/events{/privacy}","received_events_url":"https://api.github.com/users/LogGits/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-21T15:46:03Z","updated_at":"2018-11-22T20:51:51Z","closed_at":null,"author_association":"NONE","body":"Players who dont have access to specific commands are able to tab complete them in 1.13.\r\nThis is because the plugin.yml isn't setup properly. An example of a plugin.yml setup that prevents tabcomplete of commands that a player doesn't have access to is:\r\n```yaml\r\ncommands:\r\n  start:\r\n    description: hub of important commands.\r\n    aliases: info\r\n    permission: test.start\r\n\r\npermissions:\r\n  test.start:\r\n    description: give access to /start\r\n    default: op\r\n```"},"comment":{"url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin/issues/comments/441118364","html_url":"https://github.com/Ben12345rocks/VotingPlugin/issues/451#issuecomment-441118364","issue_url":"https://api.github.com/repos/Ben12345rocks/VotingPlugin/issues/451","id":441118364,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTExODM2NA==","user":{"login":"LogGits","id":26944626,"node_id":"MDQ6VXNlcjI2OTQ0NjI2","avatar_url":"https://avatars1.githubusercontent.com/u/26944626?v=4","gravatar_id":"","url":"https://api.github.com/users/LogGits","html_url":"https://github.com/LogGits","followers_url":"https://api.github.com/users/LogGits/followers","following_url":"https://api.github.com/users/LogGits/following{/other_user}","gists_url":"https://api.github.com/users/LogGits/gists{/gist_id}","starred_url":"https://api.github.com/users/LogGits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogGits/subscriptions","organizations_url":"https://api.github.com/users/LogGits/orgs","repos_url":"https://api.github.com/users/LogGits/repos","events_url":"https://api.github.com/users/LogGits/events{/privacy}","received_events_url":"https://api.github.com/users/LogGits/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T20:51:51Z","updated_at":"2018-11-22T20:51:51Z","author_association":"NONE","body":"Nice work 👍 There is also a spigot event `PlayerCommandSendEvent` that can be used like this:\r\n```java\r\n    @EventHandler\r\n    public void onSendCommand(PlayerCommandSendEvent event) {\r\n        Player player = event.getPlayer();\r\n        if (!player.hasPermission(\"test.start\")) {\r\n            event.getCommands().remove(\"start\");\r\n        }\r\n    }\r\n```\r\nto resolve this."}}
{"actor":{"display_login":"LogGits"}}