{"action":"created","issue":{"url":"https://api.github.com/repos/CCEU/IssueTracker/issues/10","repository_url":"https://api.github.com/repos/CCEU/IssueTracker","labels_url":"https://api.github.com/repos/CCEU/IssueTracker/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/CCEU/IssueTracker/issues/10/comments","events_url":"https://api.github.com/repos/CCEU/IssueTracker/issues/10/events","html_url":"https://github.com/CCEU/IssueTracker/issues/10","id":228137702,"number":10,"title":"Discussion: Remove Player-Collision or not?","user":{"login":"CCCoderDE","id":5791925,"avatar_url":"https://avatars1.githubusercontent.com/u/5791925?v=4","gravatar_id":"","url":"https://api.github.com/users/CCCoderDE","html_url":"https://github.com/CCCoderDE","followers_url":"https://api.github.com/users/CCCoderDE/followers","following_url":"https://api.github.com/users/CCCoderDE/following{/other_user}","gists_url":"https://api.github.com/users/CCCoderDE/gists{/gist_id}","starred_url":"https://api.github.com/users/CCCoderDE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCCoderDE/subscriptions","organizations_url":"https://api.github.com/users/CCCoderDE/orgs","repos_url":"https://api.github.com/users/CCCoderDE/repos","events_url":"https://api.github.com/users/CCCoderDE/events{/privacy}","received_events_url":"https://api.github.com/users/CCCoderDE/received_events","type":"User","site_admin":false},"labels":[{"id":595851654,"url":"https://api.github.com/repos/CCEU/IssueTracker/labels/dev","name":"dev","color":"ffffff","default":false},{"id":594777342,"url":"https://api.github.com/repos/CCEU/IssueTracker/labels/improvement","name":"improvement","color":"1e90ff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-11T22:20:19Z","updated_at":"2017-09-07T17:11:04Z","closed_at":"2017-09-07T17:11:04Z","author_association":"OWNER","body":"First two Arguments:\r\n(1) Pro: Removes the possibility to push players in the PvP-Zone and then kill them while they're AFK\r\n(2) Con: Not easy to implement as it's not fully supported by Spigot (pushing seems to occur client-side) and probably not possible per-player, only for everyone "},"comment":{"url":"https://api.github.com/repos/CCEU/IssueTracker/issues/comments/327864184","html_url":"https://github.com/CCEU/IssueTracker/issues/10#issuecomment-327864184","issue_url":"https://api.github.com/repos/CCEU/IssueTracker/issues/10","id":327864184,"user":{"login":"CCCoderDE","id":5791925,"avatar_url":"https://avatars1.githubusercontent.com/u/5791925?v=4","gravatar_id":"","url":"https://api.github.com/users/CCCoderDE","html_url":"https://github.com/CCCoderDE","followers_url":"https://api.github.com/users/CCCoderDE/followers","following_url":"https://api.github.com/users/CCCoderDE/following{/other_user}","gists_url":"https://api.github.com/users/CCCoderDE/gists{/gist_id}","starred_url":"https://api.github.com/users/CCCoderDE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCCoderDE/subscriptions","organizations_url":"https://api.github.com/users/CCCoderDE/orgs","repos_url":"https://api.github.com/users/CCCoderDE/repos","events_url":"https://api.github.com/users/CCCoderDE/events{/privacy}","received_events_url":"https://api.github.com/users/CCCoderDE/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T17:11:04Z","updated_at":"2017-09-07T17:11:04Z","author_association":"OWNER","body":"Fixed it with a simple method 🤦‍♂️ \r\n\r\n```\r\nprivate void setNoCollision(Player p) {\r\n    Scoreboard sb = p.getScoreboard();\r\n    Set<Team> teams = sb.getTeams();\r\n    if (teams.size() == 0) {\r\n        sb.registerNewTeam(\"nocollision\").setOption(Team.Option.COLLISION_RULE, Team.OptionStatus.NEVER);\r\n        sb.getTeam(\"nocollision\").addPlayer(p);\r\n    } else {\r\n        for (Team t : teams) {\r\n            t.setOption(Team.Option.COLLISION_RULE, Team.OptionStatus.NEVER);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nMethod gets called on CCEUPlayer#connectEvent(Player p)"}}
{"actor":{"display_login":"CCCoderDE"}}