{"action":"created","issue":{"url":"https://api.github.com/repos/wiez/MyPlot/issues/26","labels_url":"https://api.github.com/repos/wiez/MyPlot/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/wiez/MyPlot/issues/26/comments","events_url":"https://api.github.com/repos/wiez/MyPlot/issues/26/events","html_url":"https://github.com/wiez/MyPlot/issues/26","id":114821525,"number":26,"title":"Payment is not done successfully","user":{"login":"HerO-0110","id":10383115,"avatar_url":"https://avatars.githubusercontent.com/u/10383115?v=3","gravatar_id":"","url":"https://api.github.com/users/HerO-0110","html_url":"https://github.com/HerO-0110","followers_url":"https://api.github.com/users/HerO-0110/followers","following_url":"https://api.github.com/users/HerO-0110/following{/other_user}","gists_url":"https://api.github.com/users/HerO-0110/gists{/gist_id}","starred_url":"https://api.github.com/users/HerO-0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerO-0110/subscriptions","organizations_url":"https://api.github.com/users/HerO-0110/orgs","repos_url":"https://api.github.com/users/HerO-0110/repos","events_url":"https://api.github.com/users/HerO-0110/events{/privacy}","received_events_url":"https://api.github.com/users/HerO-0110/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-03T13:55:42Z","updated_at":"2015-11-06T14:21:23Z","closed_at":null,"body":"As the title suggests, players' money is not checked properly, resulting in the error message. I'm not quite sure how the function was done on the code, but most people uses economys, and would be best if you simply do EconomyAPI::mymoney($player) to get players' money for now as a temporary fix."},"comment":{"url":"https://api.github.com/repos/wiez/MyPlot/issues/comments/154420465","html_url":"https://github.com/wiez/MyPlot/issues/26#issuecomment-154420465","issue_url":"https://api.github.com/repos/wiez/MyPlot/issues/26","id":154420465,"user":{"login":"HerO-0110","id":10383115,"avatar_url":"https://avatars.githubusercontent.com/u/10383115?v=3","gravatar_id":"","url":"https://api.github.com/users/HerO-0110","html_url":"https://github.com/HerO-0110","followers_url":"https://api.github.com/users/HerO-0110/followers","following_url":"https://api.github.com/users/HerO-0110/following{/other_user}","gists_url":"https://api.github.com/users/HerO-0110/gists{/gist_id}","starred_url":"https://api.github.com/users/HerO-0110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerO-0110/subscriptions","organizations_url":"https://api.github.com/users/HerO-0110/orgs","repos_url":"https://api.github.com/users/HerO-0110/repos","events_url":"https://api.github.com/users/HerO-0110/events{/privacy}","received_events_url":"https://api.github.com/users/HerO-0110/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T14:21:23Z","updated_at":"2015-11-06T14:21:23Z","body":"$price = $this->config->getAll()[\"DefaultWorld\"][\"ClaimPrice\"];\r\nif (EconomyAPI::getInstance()->myMoney($sender) < $price) {\r\n            $sender->sendMessage(TextFormat::RED . \"You don't have enough money to claim this plot\");\r\n            return true;\r\n        }\r\nTry this. I am not quite sure how to retrieve value from the config, so don't use the way I defined $price if it is wrong."}}