Hackalert

Discussion in 'Bukkit Help' started by PlazmaR, Jun 19, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    PlazmaR

    So recently I got a hacker alert plugin and every time I tried running the command it gave me this error:

    Code:
    Unexpected exception while parsing console command "hackalerts"
    
    org.bukkit.command.CommandException: Unhandled exception executing command 'hackalerts' in plugin HackAlerts3 v0.1
    
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServer.java:696) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchServerCommand(CraftServer.java:683) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at net.minecraft.server.v1_7_R2.DedicatedServer.ax(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:548) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:459) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_7_R2.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    
        at cmd.HackAlerts.onCommand(HackAlerts.java:25) ~[?:?]
    
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks]
    
        ... 8 more
    Can anyone please tell me what is happening, I'm not much of a coder.
     
    Last edited by a moderator: Jun 19, 2016
  2. Offline

    timtower Administrator Administrator Moderator

    @PlazmaR Run the command as a player instead.
    The developer didn't take into account that the command could be executed by the console.
     
Thread Status:
Not open for further replies.

Share This Page