sort reload from server console #3


  • Defect
  • Accepted
Open
Assigned to _ForgeUser7455807
  • _ForgeUser7530270 created this issue Sep 10, 2011

    What steps will reproduce the problem?
    1. Install InventorySort
    2. In server console, run sort reload

    What is the expected output? What do you see instead?
    Expected: Config reloaded
    Actual:
    >sort reload
    23:28:21 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'sort' in plugin InventorySort v2.0.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:344)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at Wolfwood.InventorySort.CommandHandler.getPermissions(CommandHandler.java:64)
            at Wolfwood.InventorySort.commands.SortCommand.perform(SortCommand.java:59)
            at Wolfwood.InventorySort.InventorySort.onCommand(InventorySort.java:108)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more

    What version of the product are you using?
    2.0.2

    Do you have an error log of what happened?
    See above

    Please provide any additional information below.
    Looks like it's expecting a player to run that command rather than console. Works fine for player to do it.
    Should either work for console to do it or notify that player should do it rather than explode.

  • _ForgeUser7530270 added the tags New Defect Sep 10, 2011
  • _ForgeUser7455807 removed a tag New Oct 11, 2011
  • _ForgeUser7455807 added a tag Accepted Oct 11, 2011

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