{"action":"created","comment":{"url":"https://api.github.com/repos/MassiveCraft/Factions/pulls/comments/188188840","pull_request_review_id":120113656,"id":188188840,"diff_hunk":"@@ -0,0 +1,38 @@\n+package com.massivecraft.factions.cmd;\n+\n+import com.massivecraft.factions.Rel;\n+import com.massivecraft.factions.cmd.type.TypeFaction;\n+import com.massivecraft.factions.entity.Faction;\n+import com.massivecraft.massivecore.MassiveException;\n+\n+public class CmdFactionsRelationCheck extends FactionsCommand\n+{\n+\t// -------------------------------------------- //\n+\t// CONSTRUCT\n+\t// -------------------------------------------- //\n+\n+\tpublic CmdFactionsRelationCheck()\n+\t{\n+\t\t// Parameter\n+\t\tthis.addParameter(TypeFaction.get(), \"faction\");\n+\t\tthis.addParameter(TypeFaction.get(), \"faction\", \"you\");\n+\t}\n+\n+\t// -------------------------------------------- //\n+\t// OVERRIDE\n+\t// -------------------------------------------- //\n+\t\n+\t@Override\n+\tpublic void perform() throws MassiveException\n+\t{\n+\t\t// Args\n+\t\tfinal Faction faction1 = this.readArg();\n+\t\tfinal Faction faction2 = this.readArg(msenderFaction);\n+\t\t\n+\t\tRel relationBetweenFactions = faction1.getRelationTo(faction2);\n+\t\tString relationText = relationBetweenFactions.getColor().toString() + relationBetweenFactions.getDescFactionMany();\n+\t\tif (relationBetweenFactions == Rel.MEMBER && msenderFaction != faction1) relationText = \"<silver>the same faction\";\n+\t\t\n+\t\tmsg( \"%s <i>and %s <i>are %s<i>.\", faction1.getName(msenderFaction), faction2.getName(msenderFaction), relationText);","path":"src/com/massivecraft/factions/cmd/CmdFactionsRelationCheck.java","position":36,"original_position":36,"commit_id":"3839c7b52dbb66c7ebfc7ccf580b7fb8e661a5f4","original_commit_id":"3839c7b52dbb66c7ebfc7ccf580b7fb8e661a5f4","user":{"login":"magnusulf","id":6261088,"avatar_url":"https://avatars1.githubusercontent.com/u/6261088?v=4","gravatar_id":"","url":"https://api.github.com/users/magnusulf","html_url":"https://github.com/magnusulf","followers_url":"https://api.github.com/users/magnusulf/followers","following_url":"https://api.github.com/users/magnusulf/following{/other_user}","gists_url":"https://api.github.com/users/magnusulf/gists{/gist_id}","starred_url":"https://api.github.com/users/magnusulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnusulf/subscriptions","organizations_url":"https://api.github.com/users/magnusulf/orgs","repos_url":"https://api.github.com/users/magnusulf/repos","events_url":"https://api.github.com/users/magnusulf/events{/privacy}","received_events_url":"https://api.github.com/users/magnusulf/received_events","type":"User","site_admin":false},"body":"space after msg(","created_at":"2018-05-15T07:31:46Z","updated_at":"2018-05-15T07:33:53Z","html_url":"https://github.com/MassiveCraft/Factions/pull/1304#discussion_r188188840","pull_request_url":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/MassiveCraft/Factions/pulls/comments/188188840"},"html":{"href":"https://github.com/MassiveCraft/Factions/pull/1304#discussion_r188188840"},"pull_request":{"href":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304"}}},"pull_request":{"url":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304","id":184830618,"html_url":"https://github.com/MassiveCraft/Factions/pull/1304","diff_url":"https://github.com/MassiveCraft/Factions/pull/1304.diff","patch_url":"https://github.com/MassiveCraft/Factions/pull/1304.patch","issue_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/1304","number":1304,"state":"open","locked":false,"title":"Introduction of Relation Check command","user":{"login":"CS-Birb","id":5267414,"avatar_url":"https://avatars1.githubusercontent.com/u/5267414?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-Birb","html_url":"https://github.com/CS-Birb","followers_url":"https://api.github.com/users/CS-Birb/followers","following_url":"https://api.github.com/users/CS-Birb/following{/other_user}","gists_url":"https://api.github.com/users/CS-Birb/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-Birb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-Birb/subscriptions","organizations_url":"https://api.github.com/users/CS-Birb/orgs","repos_url":"https://api.github.com/users/CS-Birb/repos","events_url":"https://api.github.com/users/CS-Birb/events{/privacy}","received_events_url":"https://api.github.com/users/CS-Birb/received_events","type":"User","site_admin":false},"body":"Allows players to check the relation between any two factions (or players), without sifting through a large list of relations.","created_at":"2018-04-29T11:45:35Z","updated_at":"2018-05-15T07:33:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f95258ff86b6a97eb3ff2aa7e289202d3836548","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304/commits","review_comments_url":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304/comments","review_comment_url":"https://api.github.com/repos/MassiveCraft/Factions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/1304/comments","statuses_url":"https://api.github.com/repos/MassiveCraft/Factions/statuses/3839c7b52dbb66c7ebfc7ccf580b7fb8e661a5f4","head":{"label":"CS-Birb:FactionsRelationCheck","ref":"FactionsRelationCheck","sha":"3839c7b52dbb66c7ebfc7ccf580b7fb8e661a5f4","user":{"login":"CS-Birb","id":5267414,"avatar_url":"https://avatars1.githubusercontent.com/u/5267414?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-Birb","html_url":"https://github.com/CS-Birb","followers_url":"https://api.github.com/users/CS-Birb/followers","following_url":"https://api.github.com/users/CS-Birb/following{/other_user}","gists_url":"https://api.github.com/users/CS-Birb/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-Birb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-Birb/subscriptions","organizations_url":"https://api.github.com/users/CS-Birb/orgs","repos_url":"https://api.github.com/users/CS-Birb/repos","events_url":"https://api.github.com/users/CS-Birb/events{/privacy}","received_events_url":"https://api.github.com/users/CS-Birb/received_events","type":"User","site_admin":false},"repo":{"id":114448886,"name":"Factions","full_name":"CS-Birb/Factions","owner":{"login":"CS-Birb","id":5267414,"avatar_url":"https://avatars1.githubusercontent.com/u/5267414?v=4","gravatar_id":"","url":"https://api.github.com/users/CS-Birb","html_url":"https://github.com/CS-Birb","followers_url":"https://api.github.com/users/CS-Birb/followers","following_url":"https://api.github.com/users/CS-Birb/following{/other_user}","gists_url":"https://api.github.com/users/CS-Birb/gists{/gist_id}","starred_url":"https://api.github.com/users/CS-Birb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS-Birb/subscriptions","organizations_url":"https://api.github.com/users/CS-Birb/orgs","repos_url":"https://api.github.com/users/CS-Birb/repos","events_url":"https://api.github.com/users/CS-Birb/events{/privacy}","received_events_url":"https://api.github.com/users/CS-Birb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CS-Birb/Factions","description":"https://www.massivecraft.com/factions","fork":true,"url":"https://api.github.com/repos/CS-Birb/Factions","forks_url":"https://api.github.com/repos/CS-Birb/Factions/forks","keys_url":"https://api.github.com/repos/CS-Birb/Factions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS-Birb/Factions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS-Birb/Factions/teams","hooks_url":"https://api.github.com/repos/CS-Birb/Factions/hooks","issue_events_url":"https://api.github.com/repos/CS-Birb/Factions/issues/events{/number}","events_url":"https://api.github.com/repos/CS-Birb/Factions/events","assignees_url":"https://api.github.com/repos/CS-Birb/Factions/assignees{/user}","branches_url":"https://api.github.com/repos/CS-Birb/Factions/branches{/branch}","tags_url":"https://api.github.com/repos/CS-Birb/Factions/tags","blobs_url":"https://api.github.com/repos/CS-Birb/Factions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS-Birb/Factions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS-Birb/Factions/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS-Birb/Factions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS-Birb/Factions/statuses/{sha}","languages_url":"https://api.github.com/repos/CS-Birb/Factions/languages","stargazers_url":"https://api.github.com/repos/CS-Birb/Factions/stargazers","contributors_url":"https://api.github.com/repos/CS-Birb/Factions/contributors","subscribers_url":"https://api.github.com/repos/CS-Birb/Factions/subscribers","subscription_url":"https://api.github.com/repos/CS-Birb/Factions/subscription","commits_url":"https://api.github.com/repos/CS-Birb/Factions/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS-Birb/Factions/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS-Birb/Factions/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS-Birb/Factions/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS-Birb/Factions/contents/{+path}","compare_url":"https://api.github.com/repos/CS-Birb/Factions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS-Birb/Factions/merges","archive_url":"https://api.github.com/repos/CS-Birb/Factions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS-Birb/Factions/downloads","issues_url":"https://api.github.com/repos/CS-Birb/Factions/issues{/number}","pulls_url":"https://api.github.com/repos/CS-Birb/Factions/pulls{/number}","milestones_url":"https://api.github.com/repos/CS-Birb/Factions/milestones{/number}","notifications_url":"https://api.github.com/repos/CS-Birb/Factions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS-Birb/Factions/labels{/name}","releases_url":"https://api.github.com/repos/CS-Birb/Factions/releases{/id}","deployments_url":"https://api.github.com/repos/CS-Birb/Factions/deployments","created_at":"2017-12-16T09:27:18Z","updated_at":"2017-12-16T09:27:20Z","pushed_at":"2018-04-30T04:30:50Z","git_url":"git://github.com/CS-Birb/Factions.git","ssh_url":"git@github.com:CS-Birb/Factions.git","clone_url":"https://github.com/CS-Birb/Factions.git","svn_url":"https://github.com/CS-Birb/Factions","homepage":"","size":82028,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MassiveCraft:master","ref":"master","sha":"140152c4634c66b1e4781d247ec8c25d6841c175","user":{"login":"MassiveCraft","id":919335,"avatar_url":"https://avatars2.githubusercontent.com/u/919335?v=4","gravatar_id":"","url":"https://api.github.com/users/MassiveCraft","html_url":"https://github.com/MassiveCraft","followers_url":"https://api.github.com/users/MassiveCraft/followers","following_url":"https://api.github.com/users/MassiveCraft/following{/other_user}","gists_url":"https://api.github.com/users/MassiveCraft/gists{/gist_id}","starred_url":"https://api.github.com/users/MassiveCraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MassiveCraft/subscriptions","organizations_url":"https://api.github.com/users/MassiveCraft/orgs","repos_url":"https://api.github.com/users/MassiveCraft/repos","events_url":"https://api.github.com/users/MassiveCraft/events{/privacy}","received_events_url":"https://api.github.com/users/MassiveCraft/received_events","type":"Organization","site_admin":false},"repo":{"id":1334170,"name":"Factions","full_name":"MassiveCraft/Factions","owner":{"login":"MassiveCraft","id":919335,"avatar_url":"https://avatars2.githubusercontent.com/u/919335?v=4","gravatar_id":"","url":"https://api.github.com/users/MassiveCraft","html_url":"https://github.com/MassiveCraft","followers_url":"https://api.github.com/users/MassiveCraft/followers","following_url":"https://api.github.com/users/MassiveCraft/following{/other_user}","gists_url":"https://api.github.com/users/MassiveCraft/gists{/gist_id}","starred_url":"https://api.github.com/users/MassiveCraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MassiveCraft/subscriptions","organizations_url":"https://api.github.com/users/MassiveCraft/orgs","repos_url":"https://api.github.com/users/MassiveCraft/repos","events_url":"https://api.github.com/users/MassiveCraft/events{/privacy}","received_events_url":"https://api.github.com/users/MassiveCraft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MassiveCraft/Factions","description":"https://www.massivecraft.com/factions","fork":false,"url":"https://api.github.com/repos/MassiveCraft/Factions","forks_url":"https://api.github.com/repos/MassiveCraft/Factions/forks","keys_url":"https://api.github.com/repos/MassiveCraft/Factions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MassiveCraft/Factions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MassiveCraft/Factions/teams","hooks_url":"https://api.github.com/repos/MassiveCraft/Factions/hooks","issue_events_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/events{/number}","events_url":"https://api.github.com/repos/MassiveCraft/Factions/events","assignees_url":"https://api.github.com/repos/MassiveCraft/Factions/assignees{/user}","branches_url":"https://api.github.com/repos/MassiveCraft/Factions/branches{/branch}","tags_url":"https://api.github.com/repos/MassiveCraft/Factions/tags","blobs_url":"https://api.github.com/repos/MassiveCraft/Factions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MassiveCraft/Factions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MassiveCraft/Factions/git/refs{/sha}","trees_url":"https://api.github.com/repos/MassiveCraft/Factions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MassiveCraft/Factions/statuses/{sha}","languages_url":"https://api.github.com/repos/MassiveCraft/Factions/languages","stargazers_url":"https://api.github.com/repos/MassiveCraft/Factions/stargazers","contributors_url":"https://api.github.com/repos/MassiveCraft/Factions/contributors","subscribers_url":"https://api.github.com/repos/MassiveCraft/Factions/subscribers","subscription_url":"https://api.github.com/repos/MassiveCraft/Factions/subscription","commits_url":"https://api.github.com/repos/MassiveCraft/Factions/commits{/sha}","git_commits_url":"https://api.github.com/repos/MassiveCraft/Factions/git/commits{/sha}","comments_url":"https://api.github.com/repos/MassiveCraft/Factions/comments{/number}","issue_comment_url":"https://api.github.com/repos/MassiveCraft/Factions/issues/comments{/number}","contents_url":"https://api.github.com/repos/MassiveCraft/Factions/contents/{+path}","compare_url":"https://api.github.com/repos/MassiveCraft/Factions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MassiveCraft/Factions/merges","archive_url":"https://api.github.com/repos/MassiveCraft/Factions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MassiveCraft/Factions/downloads","issues_url":"https://api.github.com/repos/MassiveCraft/Factions/issues{/number}","pulls_url":"https://api.github.com/repos/MassiveCraft/Factions/pulls{/number}","milestones_url":"https://api.github.com/repos/MassiveCraft/Factions/milestones{/number}","notifications_url":"https://api.github.com/repos/MassiveCraft/Factions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MassiveCraft/Factions/labels{/name}","releases_url":"https://api.github.com/repos/MassiveCraft/Factions/releases{/id}","deployments_url":"https://api.github.com/repos/MassiveCraft/Factions/deployments","created_at":"2011-02-06T11:48:50Z","updated_at":"2018-05-07T15:27:02Z","pushed_at":"2018-04-30T04:30:52Z","git_url":"git://github.com/MassiveCraft/Factions.git","ssh_url":"git@github.com:MassiveCraft/Factions.git","clone_url":"https://github.com/MassiveCraft/Factions.git","svn_url":"https://github.com/MassiveCraft/Factions","homepage":"","size":82023,"stargazers_count":230,"watchers_count":230,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":549,"mirror_url":null,"archived":false,"open_issues_count":100,"license":null,"forks":549,"open_issues":100,"watchers":230,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304"},"html":{"href":"https://github.com/MassiveCraft/Factions/pull/1304"},"issue":{"href":"https://api.github.com/repos/MassiveCraft/Factions/issues/1304"},"comments":{"href":"https://api.github.com/repos/MassiveCraft/Factions/issues/1304/comments"},"review_comments":{"href":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304/comments"},"review_comment":{"href":"https://api.github.com/repos/MassiveCraft/Factions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MassiveCraft/Factions/pulls/1304/commits"},"statuses":{"href":"https://api.github.com/repos/MassiveCraft/Factions/statuses/3839c7b52dbb66c7ebfc7ccf580b7fb8e661a5f4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"magnusulf"}}