{"action":"created","issue":{"url":"https://api.github.com/repos/MassiveCraft/Factions/issues/236","labels_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/236/comments","events_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/236/events","html_url":"https://github.com/MassiveCraft/Factions/issues/236","id":13916292,"number":236,"title":"PluginChannel client information queries","user":{"login":"riking","id":627891,"avatar_url":"https://avatars.githubusercontent.com/u/627891?v=3","gravatar_id":"","url":"https://api.github.com/users/riking","html_url":"https://github.com/riking","followers_url":"https://api.github.com/users/riking/followers","following_url":"https://api.github.com/users/riking/following{/other_user}","gists_url":"https://api.github.com/users/riking/gists{/gist_id}","starred_url":"https://api.github.com/users/riking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riking/subscriptions","organizations_url":"https://api.github.com/users/riking/orgs","repos_url":"https://api.github.com/users/riking/repos","events_url":"https://api.github.com/users/riking/events{/privacy}","received_events_url":"https://api.github.com/users/riking/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-05-02T23:44:23Z","updated_at":"2016-01-16T17:05:35Z","closed_at":"2016-01-16T17:05:35Z","body":"Task: Create a PluginChannel API such that a client mod can query information like so:\r\n```\r\nsendPacket250(\"REGISTER\", \"Factions\")\r\nsendPacket250(\"Factions\", something_or_other)\r\nlistenPacket250(\"Factions\");\r\n```\r\nHere's a list of possible query goals:\r\n * Relation of player/faction to me\r\n * Relation of each player on the playerlist to me\r\n * Formatted string for a player/faction\r\n * The faction of a player\r\n * Power/Land/Maxpower of a faction\r\n * Power/Maxpower of a player\r\n * The equivalent of /f map, except sent over this so that a client mod can display it in a custom manner\r\n * Getting the cape configs (/f cape or whatever it is), to be used with the playerlist relation query\r\n\r\nPossible difficulties: \r\n * Asking for so much information that it lags the server pipe\r\n\r\nThe Bukkit classes to do this are in `org.bukkit.plugin.messaging`."},"comment":{"url":"https://api.github.com/repos/MassiveCraft/Factions/issues/comments/172228557","html_url":"https://github.com/MassiveCraft/Factions/issues/236#issuecomment-172228557","issue_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/236","id":172228557,"user":{"login":"ulumulu1510","id":1180117,"avatar_url":"https://avatars.githubusercontent.com/u/1180117?v=3","gravatar_id":"","url":"https://api.github.com/users/ulumulu1510","html_url":"https://github.com/ulumulu1510","followers_url":"https://api.github.com/users/ulumulu1510/followers","following_url":"https://api.github.com/users/ulumulu1510/following{/other_user}","gists_url":"https://api.github.com/users/ulumulu1510/gists{/gist_id}","starred_url":"https://api.github.com/users/ulumulu1510/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulumulu1510/subscriptions","organizations_url":"https://api.github.com/users/ulumulu1510/orgs","repos_url":"https://api.github.com/users/ulumulu1510/repos","events_url":"https://api.github.com/users/ulumulu1510/events{/privacy}","received_events_url":"https://api.github.com/users/ulumulu1510/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T17:05:35Z","updated_at":"2016-01-16T17:05:35Z","body":"This has essentially been created. All the described features are part of the current version of Factions and can be accessed. It is not it's own API, but it's part of it. If you are still interested in developing such an API, feel free to do so :)"}}