Hey guys I'm making this plugin to upload to my bukkit dev page and I was wondering how I would be able to make the command available to Console and Players If possible can you show me a demonstration with a simple instance like kick heal or ban doesnt matter as long as I can see how it would work Thanks
Post the code you currently have on http://pastebin.com/ and link the URL here. This will let us provide examples based on your current code, and see what you already have.
Just make the Code: if (!(sender instanceof Player)) { have what you would do regularly if they weren't a player e.g Code: if (cmd.equalsIgnoreCase("test")) { if (!(sender instanceof Player)) { Bukkit.getServer().broadcastMessage("It works!"); } else { Player p = (Player) sender; Bukkit.getServer().broadcastMessage(It works normally!); }