Console command #3


  • Accepted
  • Defect
Open
Assigned to _ForgeUser7785194
  • _ForgeUser6913334 created this issue Mar 25, 2012

    What steps will reproduce the problem?
    1. Open bukkit
    2. type hb {Message}
    3. error report

    What is the expected output? What do you see instead?
    I expect that it broadcasts correctly, but an error log pops up.

    What version of the product are you using?
    1.2.4 R01

    Do you have an error log of what happened?
    01:38 PM [SEVERE] Exception in thread "AWT-EventQueue-0"
    01:38 PM [SEVERE] org.bukkit.command.CommandException: Unhandled exception executing command 'hb' in plugin hBroadcast v1.3
    01:38 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    01:38 PM [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    01:38 PM [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    01:38 PM [SEVERE] at me.escapeNT.pail.GUIComponents.ServerConsolePanel$ConsoleCommandListener.actionPerformed(ServerConsolePanel.java:78)
    01:38 PM [SEVERE] at javax.swing.JTextField.fireActionPerformed(Unknown Source)
    01:38 PM [SEVERE] at javax.swing.JTextField.postActionEvent(Unknown Source)
    01:38 PM [SEVERE] at javax.swing.JTextField$NotifyAction.actionPerformed(Unknown Source)
    01:38 PM [SEVERE] at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    01:38 PM [SEVERE] at javax.swing.JComponent.processKeyBinding(Unknown Source)
    01:38 PM [SEVERE] at javax.swing.JComponent.processKeyBindings(Unknown Source)
    01:38 PM [SEVERE] at javax.swing.JComponent.processKeyEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Component.processEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Container.processEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Component.dispatchEventImpl(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
    01:38 PM [SEVERE] at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Component.dispatchEventImpl(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Container.dispatchEventImpl(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Window.dispatchEventImpl(Unknown Source)
    01:38 PM [SEVERE] at java.awt.Component.dispatchEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventQueue.access$000(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventQueue$3.run(Unknown Source)
    01:38 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
    01:38 PM [SEVERE] at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventQueue$4.run(Unknown Source)
    01:38 PM [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
    01:38 PM [SEVERE] at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventQueue.dispatchEvent(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    01:38 PM [SEVERE] at java.awt.EventDispatchThread.run(Unknown Source)
    01:38 PM [SEVERE] Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    01:38 PM [SEVERE] at net.h31ix.hbroadcast.Hbroadcast$1.onCommand(Hbroadcast.java:44)
    01:38 PM [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    01:38 PM [SEVERE] ... 42 more

    Please provide any additional information below.

  • _ForgeUser6913334 added the tags New Defect Mar 25, 2012
  • _ForgeUser7785194 removed a tag New Mar 28, 2012
  • _ForgeUser7785194 added a tag Accepted Mar 28, 2012

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