{"action":"created","issue":{"url":"https://api.github.com/repos/Adaptified/Freedom/issues/3","repository_url":"https://api.github.com/repos/Adaptified/Freedom","labels_url":"https://api.github.com/repos/Adaptified/Freedom/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Adaptified/Freedom/issues/3/comments","events_url":"https://api.github.com/repos/Adaptified/Freedom/issues/3/events","html_url":"https://github.com/Adaptified/Freedom/issues/3","id":148823567,"number":3,"title":"Add Console Responses","user":{"login":"aggelosQQ","id":7341365,"avatar_url":"https://avatars.githubusercontent.com/u/7341365?v=3","gravatar_id":"","url":"https://api.github.com/users/aggelosQQ","html_url":"https://github.com/aggelosQQ","followers_url":"https://api.github.com/users/aggelosQQ/followers","following_url":"https://api.github.com/users/aggelosQQ/following{/other_user}","gists_url":"https://api.github.com/users/aggelosQQ/gists{/gist_id}","starred_url":"https://api.github.com/users/aggelosQQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aggelosQQ/subscriptions","organizations_url":"https://api.github.com/users/aggelosQQ/orgs","repos_url":"https://api.github.com/users/aggelosQQ/repos","events_url":"https://api.github.com/users/aggelosQQ/events{/privacy}","received_events_url":"https://api.github.com/users/aggelosQQ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Adaptified/Freedom/labels/Bug","name":"Bug","color":"ee0701"},{"url":"https://api.github.com/repos/Adaptified/Freedom/labels/Bug:%20Confirmed","name":"Bug: Confirmed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-16T06:37:16Z","updated_at":"2016-04-16T18:25:54Z","closed_at":null,"body":"When casting commands from console, errors just pop-up.\r\n\r\n```\r\n:[02:35:24 ERROR]: [Freedom] Uncaught exception executing command: cmdspy\r\n:[02:35:24 ERROR]: [Freedom] java.lang.ClassCastException: me.totalfreedom.bukkittelnet.session.SessionCommandSender cannot be cast to org.bukkit.entity.Player\r\n\tat me.adapt.freedom.cmds.CMD_cmdspy.onCommand(CMD_cmdspy.java:28)\r\n\tat net.pravian.aero.command.SimpleCommand.runCommand(SimpleCommand.java:39)\r\n\tat net.pravian.aero.command.executor.SimpleCommandExecutor.onCommand(SimpleCommandExecutor.java:62)\r\n\tat org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)\r\n\tat org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)\r\n\tat org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:645)\r\n\tat me.totalfreedom.bukkittelnet.session.ClientSession$1.run(ClientSession.java:198)\r\n\tat org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71)\r\n\tat org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)\r\n\tat net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:729)\r\n\tat net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400)\r\n\tat net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660)\r\n\tat net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n:Command error: me.totalfreedom.bukkittelnet.session.SessionCommandSender cannot be cast to org.bukkit.entity.Player\r\n```\r\n\r\nYou should add some ```if````s that will check if the sender is console and echo the proper response."},"comment":{"url":"https://api.github.com/repos/Adaptified/Freedom/issues/comments/210868701","html_url":"https://github.com/Adaptified/Freedom/issues/3#issuecomment-210868701","issue_url":"https://api.github.com/repos/Adaptified/Freedom/issues/3","id":210868701,"user":{"login":"Adaptified","id":6373732,"avatar_url":"https://avatars.githubusercontent.com/u/6373732?v=3","gravatar_id":"","url":"https://api.github.com/users/Adaptified","html_url":"https://github.com/Adaptified","followers_url":"https://api.github.com/users/Adaptified/followers","following_url":"https://api.github.com/users/Adaptified/following{/other_user}","gists_url":"https://api.github.com/users/Adaptified/gists{/gist_id}","starred_url":"https://api.github.com/users/Adaptified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adaptified/subscriptions","organizations_url":"https://api.github.com/users/Adaptified/orgs","repos_url":"https://api.github.com/users/Adaptified/repos","events_url":"https://api.github.com/users/Adaptified/events{/privacy}","received_events_url":"https://api.github.com/users/Adaptified/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T18:25:54Z","updated_at":"2016-04-16T18:25:54Z","body":"Will fix.\r\n"}}