{"action":"closed","issue":{"url":"https://api.github.com/repos/SirFaizdat/Prison/issues/69","labels_url":"https://api.github.com/repos/SirFaizdat/Prison/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/SirFaizdat/Prison/issues/69/comments","events_url":"https://api.github.com/repos/SirFaizdat/Prison/issues/69/events","html_url":"https://github.com/SirFaizdat/Prison/issues/69","id":58731416,"number":69,"title":"Error when trying to demote user from console, promoting not working at all","user":{"login":"Lahemees47","id":10405384,"avatar_url":"https://avatars.githubusercontent.com/u/10405384?v=3","gravatar_id":"","url":"https://api.github.com/users/Lahemees47","html_url":"https://github.com/Lahemees47","followers_url":"https://api.github.com/users/Lahemees47/followers","following_url":"https://api.github.com/users/Lahemees47/following{/other_user}","gists_url":"https://api.github.com/users/Lahemees47/gists{/gist_id}","starred_url":"https://api.github.com/users/Lahemees47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lahemees47/subscriptions","organizations_url":"https://api.github.com/users/Lahemees47/orgs","repos_url":"https://api.github.com/users/Lahemees47/repos","events_url":"https://api.github.com/users/Lahemees47/events{/privacy}","received_events_url":"https://api.github.com/users/Lahemees47/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SirFaizdat/Prison/labels/suggestion","name":"suggestion","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-24T12:26:50Z","updated_at":"2015-06-15T15:29:18Z","closed_at":"2015-06-15T15:29:18Z","body":"Edit: Those commands work when sent by an ingame player, but not from console.\r\n\r\nI was trying to promote user from console with /prisonranks promote username, but it didn't do anything. Then I tried to demote that user and it gave me that error:\r\n\r\n[14:24:25 INFO]: [Prison] There was an error handling command prisonranks. Reason: org.bukkit.craftbukkit.v1_8_R1.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player\r\n[14:24:25 INFO]: [Prison] More info:\r\n[14:24:25 WARN]: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_8_R1.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player\r\n[14:24:25 WARN]:        at me.sirfaizdat.prison.ranks.cmds.CmdDemote.execute(CmdDemote.java:22)\r\n[14:24:25 WARN]:        at me.sirfaizdat.prison.core.Command.run(Command.java:75)\r\n[14:24:25 WARN]:        at me.sirfaizdat.prison.core.AbstractCommandManager.onCommand(AbstractCommandManager.java:48)\r\n[14:24:25 WARN]:        at me.sirfaizdat.prison.ranks.cmds.RanksCommandManager.onCommand(RanksCommandManager.java:69)\r\n[14:24:25 WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)\r\n[14:24:25 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)\r\n[14:24:25 WARN]:        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:645)\r\n[14:24:25 WARN]:        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:631)\r\n[14:24:25 WARN]:        at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:353)\r\n[14:24:25 WARN]:        at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:317)\r\n[14:24:25 WARN]:        at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623)\r\n[14:24:25 WARN]:        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526)\r\n[14:24:25 WARN]:        at java.lang.Thread.run(Thread.java:744)\r\n[14:24:25 INFO]: There was an error in starting ranks. Check the console for details.\r\n"}}