Fix command for console. #4


  • New
  • Defect
Open
Assigned to _ForgeUser7785194
  • _ForgeUser4103649 created this issue Apr 8, 2012

    Currently the console gives this error when using /hb test

    hb test
    2012-04-08 18:44:16 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'hb' in plugin hBroadcast v1.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
            at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:469)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:596)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:565)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at net.h31ix.hbroadcast.Hbroadcast$1.onCommand(Hbroadcast.java:44)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 7 more

    Please fix!

  • _ForgeUser4103649 added the tags New Defect Apr 8, 2012

To post a comment, please login or register a new account.