{"action":"created","issue":{"url":"https://api.github.com/repos/drtshock/Essentials/issues/664","repository_url":"https://api.github.com/repos/drtshock/Essentials","labels_url":"https://api.github.com/repos/drtshock/Essentials/issues/664/labels{/name}","comments_url":"https://api.github.com/repos/drtshock/Essentials/issues/664/comments","events_url":"https://api.github.com/repos/drtshock/Essentials/issues/664/events","html_url":"https://github.com/drtshock/Essentials/pull/664","id":161033264,"number":664,"title":"Create afk message","user":{"login":"SupaHam","id":1299921,"avatar_url":"https://avatars.githubusercontent.com/u/1299921?v=3","gravatar_id":"","url":"https://api.github.com/users/SupaHam","html_url":"https://github.com/SupaHam","followers_url":"https://api.github.com/users/SupaHam/followers","following_url":"https://api.github.com/users/SupaHam/following{/other_user}","gists_url":"https://api.github.com/users/SupaHam/gists{/gist_id}","starred_url":"https://api.github.com/users/SupaHam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupaHam/subscriptions","organizations_url":"https://api.github.com/users/SupaHam/orgs","repos_url":"https://api.github.com/users/SupaHam/repos","events_url":"https://api.github.com/users/SupaHam/events{/privacy}","received_events_url":"https://api.github.com/users/SupaHam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-18T16:55:24Z","updated_at":"2016-06-19T15:44:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/drtshock/Essentials/pulls/664","html_url":"https://github.com/drtshock/Essentials/pull/664","diff_url":"https://github.com/drtshock/Essentials/pull/664.diff","patch_url":"https://github.com/drtshock/Essentials/pull/664.patch"},"body":"Based on #590 \r\n\r\nThis commit makes it possible for players to set an afk message to detail their reasoning for being away to other players. This can be especially useful for the /msg command; instead of replying the user is afk, it will specify why they are afk so the sender can act further on that information.\r\n\r\nTwo methods have been added to IUser: `getAfkMessage()` and `setAfkMessage(String)`.\r\n\r\nAll locale files have two new messages: `userAFKWithMessage` and `userIsAwayWithMessage`. They all use the messages that do not have the suffix _WithMessage_, i.e. `userAFK` and `userIsAway`. Furthermore, the `userIsAwayWithMessage` will not utilise the second parameter, the reason, to prevent spam and unnecessary text in global chat. However, the second parameter ({1}) is available for use in `userIsAwayWithMessage`. `userAFKWithMessage`, which is sent to `/msg` senders, does use the {1} as it controllable spam by the command sender themselves.\r\n\r\n`/afk` usage is now: `/afk [player/message...]`"},"comment":{"url":"https://api.github.com/repos/drtshock/Essentials/issues/comments/227004107","html_url":"https://github.com/drtshock/Essentials/pull/664#issuecomment-227004107","issue_url":"https://api.github.com/repos/drtshock/Essentials/issues/664","id":227004107,"user":{"login":"SupaHam","id":1299921,"avatar_url":"https://avatars.githubusercontent.com/u/1299921?v=3","gravatar_id":"","url":"https://api.github.com/users/SupaHam","html_url":"https://github.com/SupaHam","followers_url":"https://api.github.com/users/SupaHam/followers","following_url":"https://api.github.com/users/SupaHam/following{/other_user}","gists_url":"https://api.github.com/users/SupaHam/gists{/gist_id}","starred_url":"https://api.github.com/users/SupaHam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupaHam/subscriptions","organizations_url":"https://api.github.com/users/SupaHam/orgs","repos_url":"https://api.github.com/users/SupaHam/repos","events_url":"https://api.github.com/users/SupaHam/events{/privacy}","received_events_url":"https://api.github.com/users/SupaHam/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T15:44:27Z","updated_at":"2016-06-19T15:44:27Z","body":"Anything else that needs to be done?"}}
{"actor":{"display_login":"SupaHam"}}