I am 99% sure that I added commands correctly. I have a separate class file that implements the CommandExecutor. This is what I currently have. My plugin.yml: Code: commands: idlclear: description: Clears the item drops around a specified radius permission: itemdroplog.clear usage: | /<command> [radius] My onEnable() function has: Code: getCommand("idlclear").setExecutor(new Commands(this)); This is my onCommand function: Code: public boolean onCommand(CommandSender cs, Command cmd, String str, String[] strArray) { Player player = (Player)cs; if(player.hasPermission("itemdroplog.clear") && cmd.getName().equalsIgnoreCase("idlclear")) { plugin.log.info(player.getName() + " has cleared some drops!"); return true; } else { return false; } } The problem is that I get this error: Code: Unknown console command, Please type "help" for help! I am pretty sure that I registered the command; unless I am doing something wrong!
There is nothing in your plugin.yml and onEnable, you're doing something wrong. How to do things right better: http://wiki.bukkit.org/Plugin_Tutorial#Commands
Guess like BBCode hates me. I had other information in it; guess like I'll re-edit my OP to reflect the changes.
I edited my OP. It should have contained this: Code: commands: idlclear: description: Clears the item drops around a specified radius permission: itemdroplog.clear usage: | /<command> [radius]
If you don't format your plugin.yml correctly it may break getCommand(). I can't tell from a code snippet.
It may not throw an error as it could be proper YAML but for the purposes of the plugin.yml formatted incorecctly.