For example. Player1 does /lb (LogBlock0 Instead of 'You do not have persmission to do this' I'd like it to return the 'Unknown command' It'd be great if I could select users this goes to and which commands this is affected by. A simple config file would be all thats needed for my use However I have PermissionBukkit which might conflict. Thanks in Advance Andy
The user who makes the plugin must define this, otherwise it is hard... Also, i think i saw something like this on the permissionsbukkit page... EDIT: Yah theres like Message at the bootom of your permisisons.yml
I've done a lot of searching for plugins however I can't seem to find anything quite right. Mind talking a look for me
I don't know if this would work but using a listener couldn't you cancel out that message when it is sent then replace it with the "Unknown command..." which is what is requested?
Code: if (player.hasPermission("logblock.something") == false) { player.sendMessage(getConfig().getString("unknowncommandmsg"); } If that makes sense, I could program this easily
Thats not correct, it would be if(!player.hasPermission("Logblock.something")){ Also, the only time onCommand gets triggered is if the command is from the plugin itself if i am not mistaken... (Making this allot harder. or nearly impossible with the bukkit API only)
Oh, well that makes sense. What if you make an AsyncPlayerChatEvent that said that when a player says "/lb something" it cancels the event and says "Unknown command"?
if chat has a / in front of it, it goes straight to the onCommand method, meaning that the AsyncPlayerChatEvent won't trigger
With customnodes can I block every command except for (these) or return a custom message?\ I had a look but it doesn't make much sense to me..
I really want something like this where you can just make a list of messages "You can't Build here" that i will BLOCK from sending to the player thus eliminating all the spam you list from every conceivable plugin ever ever I really dont want these sorts of messages to detract from my roleplays
It blocks per command, but you could if you wanted block "/", and then allow certain commands with the "+" option. Sorry if that seems a bit complicated, you can send me a pm for more help. I'll go ahead and make that later, if no one else does.
Dude that would be killer! The amount of times i've dug around in a config or worse a plugin.yml in the jar to turn off a message.... Only to find that it still prints a doublequote or something daft I don't want my adventurers to know that "WORLDGUARD NO LIKE YOU!" everytime they try enter the dark wizards evil force field
Kiakaha Sorry this took so long, but I've been somewhat busy. SentMessageChanger.jar Make sure the message you want changed is matched exactly, including the correct color codes. Other than that, if you need any other help you can pm me. Edit - removed link, plugin caused random bugs (stuck players, random damage, etc.)
AndyMcB1 Download: https://www.dropbox.com/s/dq3xtnl32jfit3t/NoSuchCommand.jar Source: https://www.dropbox.com/s/np9nrszr7gb7ohk/NoCommand.java How to Configure: No lists, no sections, just create a new key with the name of the command, with it's value being the permission node associated with the command. Code: command: permission_node_allowing_command #Example version: bukkit.command.version X Amount of edits: Getting the tag right :S