{"action":"closed","issue":{"url":"https://api.github.com/repos/thebigsmileXD/customui/issues/15","repository_url":"https://api.github.com/repos/thebigsmileXD/customui","labels_url":"https://api.github.com/repos/thebigsmileXD/customui/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/thebigsmileXD/customui/issues/15/comments","events_url":"https://api.github.com/repos/thebigsmileXD/customui/issues/15/events","html_url":"https://github.com/thebigsmileXD/customui/issues/15","id":261886632,"number":15,"title":"ERROR ON DISPLAY TOTAL PLAYERS IN FORM","user":{"login":"FreakingDev","id":31030234,"avatar_url":"https://avatars2.githubusercontent.com/u/31030234?v=4","gravatar_id":"","url":"https://api.github.com/users/FreakingDev","html_url":"https://github.com/FreakingDev","followers_url":"https://api.github.com/users/FreakingDev/followers","following_url":"https://api.github.com/users/FreakingDev/following{/other_user}","gists_url":"https://api.github.com/users/FreakingDev/gists{/gist_id}","starred_url":"https://api.github.com/users/FreakingDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreakingDev/subscriptions","organizations_url":"https://api.github.com/users/FreakingDev/orgs","repos_url":"https://api.github.com/users/FreakingDev/repos","events_url":"https://api.github.com/users/FreakingDev/events{/privacy}","received_events_url":"https://api.github.com/users/FreakingDev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-01T02:29:09Z","updated_at":"2017-10-01T16:15:36Z","closed_at":"2017-10-01T16:15:36Z","author_association":"NONE","body":"I got this error. Can you give me some tips to display it in button\r\n\r\nCall to a member function getPlayers() on null\" (EXCEPTION) in \"myzip://PHCUI.zip#PHCUI/src/xenialdan/customuitest/Loader\" at line 60\r\n\r\nThis is my code\r\n\r\n                $level = $this->getServer()->getLevelByName(\"Pvp\");\r\n\t\t$pcount = count($level->getPlayers());\r\n\t\t\r\n\t\t$ui = new SimpleForm('PVP', '$pcount playing');\r\n\t\t$ui->addButton(new Button('1 VS 1'));\r\n\t\t$ui->addButton(new Button('TEAM PVP'));\r\n\t\tself::$uis['pvpUI'] = UIAPI::addUI($this, $ui);"}}
{"actor":{"display_login":"thebigsmileXD"}}