{"action":"created","issue":{"url":"https://api.github.com/repos/tastybento/askyblock/issues/431","repository_url":"https://api.github.com/repos/tastybento/askyblock","labels_url":"https://api.github.com/repos/tastybento/askyblock/issues/431/labels{/name}","comments_url":"https://api.github.com/repos/tastybento/askyblock/issues/431/comments","events_url":"https://api.github.com/repos/tastybento/askyblock/issues/431/events","html_url":"https://github.com/tastybento/askyblock/issues/431","id":197527565,"number":431,"title":"getIslandAt not only returns null, but generates a NullPointerException","user":{"login":"7rory768","id":6015350,"avatar_url":"https://avatars.githubusercontent.com/u/6015350?v=3","gravatar_id":"","url":"https://api.github.com/users/7rory768","html_url":"https://github.com/7rory768","followers_url":"https://api.github.com/users/7rory768/followers","following_url":"https://api.github.com/users/7rory768/following{/other_user}","gists_url":"https://api.github.com/users/7rory768/gists{/gist_id}","starred_url":"https://api.github.com/users/7rory768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7rory768/subscriptions","organizations_url":"https://api.github.com/users/7rory768/orgs","repos_url":"https://api.github.com/users/7rory768/repos","events_url":"https://api.github.com/users/7rory768/events{/privacy}","received_events_url":"https://api.github.com/users/7rory768/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-26T02:55:38Z","updated_at":"2016-12-26T04:08:44Z","closed_at":"2016-12-26T04:08:20Z","body":"Code:\r\n```\r\n    @EventHandler\r\n    public void onBlockPlace(BlockPlaceEvent e) {\r\n        Bukkit.broadcastMessage(\"block place\");\r\n        Block b = e.getBlock();\r\n        Bukkit.broadcastMessage(b.getLocation().toString());\r\n        Material material = b.getType();\r\n        Island island = this.skyBlockAPI.getIslandAt(b.getLocation());\r\n        if (island != null && this.islandManager.isLimited(material)) {\r\n            Bukkit.broadcastMessage(\"island isn't null\");\r\n            int limit = this.plugin.getConfig().getInt(\"limits.\" + material.name() + \".limit\");\r\n            if (this.islandManager.getBlockPlaceCount(island, material) + 1 > limit) {\r\n                Bukkit.broadcastMessage(\"passes limit\");\r\n                e.getPlayer().sendMessage(this.plugin.placeholders(this.plugin.getConfig().getString(\"messages.too-many\").replace(\"{LIMIT}\", \"\" + limit).replace(\"{BLOCK}\", this.plugin.getConfig().getString(\"limits.\" + material.name() + \".name\") + (limit > 1 ? \"s\" : \"\"))));\r\n                e.setCancelled(true);\r\n            } else {\r\n                Bukkit.broadcastMessage(\"doesnt pass limit\");\r\n                this.islandManager.increaseCount(island, material);\r\n            }\r\n        }\r\n\r\n    }\r\n```\r\n\r\nError:\r\nhttp://pastebin.com/sgEt69LS"},"comment":{"url":"https://api.github.com/repos/tastybento/askyblock/issues/comments/269158089","html_url":"https://github.com/tastybento/askyblock/issues/431#issuecomment-269158089","issue_url":"https://api.github.com/repos/tastybento/askyblock/issues/431","id":269158089,"user":{"login":"7rory768","id":6015350,"avatar_url":"https://avatars.githubusercontent.com/u/6015350?v=3","gravatar_id":"","url":"https://api.github.com/users/7rory768","html_url":"https://github.com/7rory768","followers_url":"https://api.github.com/users/7rory768/followers","following_url":"https://api.github.com/users/7rory768/following{/other_user}","gists_url":"https://api.github.com/users/7rory768/gists{/gist_id}","starred_url":"https://api.github.com/users/7rory768/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7rory768/subscriptions","organizations_url":"https://api.github.com/users/7rory768/orgs","repos_url":"https://api.github.com/users/7rory768/repos","events_url":"https://api.github.com/users/7rory768/events{/privacy}","received_events_url":"https://api.github.com/users/7rory768/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T04:08:44Z","updated_at":"2016-12-26T04:08:44Z","body":"Fail... forgot that the API must be initialized onEnable not initialization"}}
{"actor":{"display_login":"7rory768"}}