{"action":"opened","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2899","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2899/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2899/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2899/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/2899","id":156510987,"number":2899,"title":"Let's talk about permissions.","user":{"login":"luacs1998","id":1886269,"avatar_url":"https://avatars.githubusercontent.com/u/1886269?v=3","gravatar_id":"","url":"https://api.github.com/users/luacs1998","html_url":"https://github.com/luacs1998","followers_url":"https://api.github.com/users/luacs1998/followers","following_url":"https://api.github.com/users/luacs1998/following{/other_user}","gists_url":"https://api.github.com/users/luacs1998/gists{/gist_id}","starred_url":"https://api.github.com/users/luacs1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luacs1998/subscriptions","organizations_url":"https://api.github.com/users/luacs1998/orgs","repos_url":"https://api.github.com/users/luacs1998/repos","events_url":"https://api.github.com/users/luacs1998/events{/privacy}","received_events_url":"https://api.github.com/users/luacs1998/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-24T13:43:40Z","updated_at":"2016-05-24T13:43:40Z","closed_at":null,"body":"Just testing the waters to see how many modders would be receptive to the idea of a Permissions API in Forge, and how we should get around to doing it. I intend such a Permissions API to be extended by Sponge, ForgeEssentials and other such permissions-providing systems.\r\n\r\nI know this isn't the first time I've raised the topic, but I feel it's an important one to discuss, especially with the return of \"big\" multiplayer servers based on the Sponge platform, which is pretty much feature-complete at this point.\r\n\r\n---\r\n\r\n- [I have a current draft of the Permissions API available here](https://github.com/ForgeEssentials/ForgeEssentials/tree/develop/src/main/java/net/minecraftforge/permission).\r\n- This API is sufficiently easy to use for modders (just call `PermissionManager.checkPermission(player, \"mymod.something.breakTheWorld\")`, you get back a boolean), and should stay that way.\r\n- Currently, the API draft provides additional permission-checking 'contexts' based on location and entity. I'm looking for more feedback on this (should this be expanded? Removed? Converted to a capability?)\r\n- One thing that can be considered is to add a PermissionActor capability, which would contain the entity doing the action (player? fakeplayer? TE?). This could be used to store a player reference to the owner of a machine, for example.\r\n\r\nI'd like to hear feedback on this, so I would really appreciate it if you could put your thoughts about this in the comments."}}
{"actor":{"display_login":"luacs1998"}}