CustomNodes
Indefinitely Inactive - 12/1/12
About the Plugin
CustomNodes lets you create specific permission nodes and no permission messages for any command. You can choose who you want to be able to use certain commands. In order to unlock all the features of this plugin a separate permissions plugin is highly recommended.
Features
- Create permission nodes for any command
- Change no permission message for any command
- Easy to use config
- Separate filter settings
- HIGH will block commands based on what they start with, i.e. "/help" would also block "/help 2" and "/help 3"
- LOW will block commands only if they are identical, i.e. "/help" would block "/help" but not "/help 2"
- Support for parent nodes
- For example, customnodes.parent.* would give access to customnodes.parent.child
- Variable support
- Current variables: $!PLAYER!$, $!NOTPLAYER!$, +
- Override option, this lets a custom node essentially override the original node
Installation
- Put the CustomNodes.jar in your plugins folder
- An example config file will be created in /plugins/CustomNodes
- You must reload the config or the plugin for any changes to take effect
Configuration
- Variables (these can be used in commands for a more dynamic check)
- $!PLAYER!$ - Use this in commands where players need to enter their name
- $!NOTPLAYER!$ - Use this to block players entering in names other than their own
- + - Use this before the command to skip any other checks if the player has the node
Commands
- /customnodes config - Shows all config commands for CustomNodes
- /customnodes info - Shows information about CustomNodes
- /customnodes reload - Reloads CustomNodes
- /customnodes config fix - Fixes the config.txt
- /customnodes config new - Creates a new config.txt
- /customnodes config reload - Reloads the config.txt
Permissions
- customnodes.bypass
- Lets a user bypass any custom node
- customnodes.commands
- Lets a user use any command for CustomNodes
- customnodes.*
- Lets a user use any command for CustomNodes and bypass any custom node
- Also any permissions added in the config
Changelog
Source
Other
I have also only tested and can confirm this plugin to work with bPermissions, but it should work with any normal permissions plugin.
If you have any errors or suggestions, post them below and I'll try to help.
Lastly, I'll be updating this if anyone experiences some kind of bug, but other than that, this plugin is finished. This was my first plugin and it's really just been a learning process for me, so thanks to anyone who's used it.
In 1.7.x when you type in a blocked command, it only outputs the last message in the config.
If you get around to fixing it, can you also add another filter type? for example if I wanted to block /pl and any other arguments after it, I would need to use filter type HIGH, but that would also block a command like /please. If you could add a way to only count arguments that have a space in between the command and the argument, that would be great.
Its finally breaking down in 1.7.x. Ive got a list of replaced commands. Now when someone dose a command it still blocks the command, but it only outputs the message for the last command in the blocked command list.
Note: Unfortunately I don't have the time to update this right now. I haven't even tested this to see if it works with the current server version. Keep that in mind while reading these responses.
@Intangir
It's probably possible. I'll look into whenever I get time.
@XtremeCraft
I could probably add a feature that lets commands be blocked for ops.
@_iMinecrafter_
Sure, for example, you would just block /login, and it would check if the player has whatever node is in the config for that command.
@notcam45
With this plugin, no. I did however, attempt making a plugin that let you change messages like that by overriding a class, but random errors started occurring (players would freeze or take random damage.)
Is it possible to override and change all the commands "no-perms msg" instead of one by one?
Can you block a command without the permission node? I am about to use a login security plugin but I only want staff and donators to be able to use it (we are a premium server, just for extra security on the staff's account). The plugin does not have any permission nodes for the /login and /register.
Hi, Can I block commands from ops?
Olly
speaking of aliases
I noticed that blocking a command doesnt block its alias.. is it possible to make command aliases automatically blocked if you block the command they are an alias for?
btw this mod is a real life saver, i have a couple mods which are nice but are lacking good permissions support, your mod basically allows me to add it
@josh_Cropper
Are the admins Ops? If they are, I'm afraid not.
However an option to stop ops and non ops from using commands could be implemented if you want.
Can I block standard commands like /deop, for admins?
@Jukkatibbs
I never really thought about adding command alias functions to this plugin, I mean if it's a feature in high demand I could probably add it in, but otherwise plugins like Commander already exists and work fine.
If I'm right I would be able to use this to change the /econ command from BOSEconomy to /money?
Or to try to word it better. Could I use this plugin to resend / (rephrase?) info like when a member of my server types in /money it will see that command as /econ from the BOSEconomy plugin ??
I totally just confused myself on another persons plugin, But I'm still on my search to find a shortcuts plugin like that. Thanks for your time, JukkaTibbs
@evilnucca
Well, right now the plugin checks everything and if anything matches it will block the command. I'll try and update this with maybe an option that lets you avoid that as soon as I can.
Edit - I finally got around to updating this, in version 1.6.3 of CustomNodes just add a + before the command and it will skip any other checks. So you would just put +/loot link test, and if the player has that node the command will go through.
Kind lost here I was looking to basically use this so my players could add chests they find in the wild to our chest links with Phatloots but not sure how to do this basically their command to add the chest is: [/loot link test] but I want to block all the other [/loot] commands so how do I do this
@MrWheatley
Version 1.6.1 of CustomNodes should still work with 1.3.1. Of course if you're getting an error I'll try to fix it, but otherwise I'd like to wait until a recommended build for 1.3.1 is released before I update.Edit - About an hour after I posted that, a new recommended build was released. So as soon as version 1.6.2 of CustomNodes is approved a version for 1.3.1 will be available.
AWESOME WORK PLEASE MAKE IT FOR 1.3 PLEASE MAN YOU ARE JUST SUPERCALIFRAGILISTICEXPIALIDOCIUS AWESOME LOOOOOOOOOVE YOU !
@awesomebilly
I may look into node grouping, but as of now this plugin does not support that. Also, with pex you could always just make a group with all the permissions you wanted and then just let whatever group or player you want to have the permissions just inherit that group.
Hi, I was looking at this plugin.
Is it possible to group nodes together with pex?
I'm trying to combine about 200 permission nodes into just 1. like this:
so in my groups I just need to call fruit.basket
Works perfectly, thank you very much one4me this is just what I needed!
Unless there is a bug, version 1.6.0 of CustomNodes should be the final version for a while. If anyone runs into any errors or has any suggestions, tell me and I'll see what I can do. Thanks.
@HyveMMO
I added in the variables $!PLAYER!$ and $!NOTPLAYER!$ in version 1.5.1.
$!PLAYER!$ will check for the players name
$!NOTPLAYER!$ will check if it is someone else other than the player, use this to prevent people from using commands on other players.
Tell me if you have any problems with it.