Call when a command doesn't exist

Discussion in 'Plugin Development' started by LRFLEW, Feb 26, 2011.

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

    LRFLEW

    I created a plugin aptly named Unknown Command, but the latest build of Bukkit got rid of onPlayerCommand(). I can't use onCommand() as it doesn't call unless declared in plugin.yml . Is there some way I can get it to run when a command doesn't exist elsewhere?
    --- merged: Feb 27, 2011 3:08 AM ---
    New info: I'm experimenting with onPlayerCommandPreprocess() and then checking to see if the command name is in the command map (using "knownCommands" in the SimpleCommandMap class), but I don't know how to actually access the map. Does anybody know?
     
Thread Status:
Not open for further replies.

Share This Page