HiddenCommandSigns
This plugin utilizes and adds to SimpleCommandSigns by storing a hidden commands database. Because we wish to keep SimpleCommandSigns simple and lightweight, we kept these extra features separate.
Features:
- You no longer need to have the command(s) being executed on the sign itself.
- You can have multiple commands run in sequence.
- You can list the permission(s) you wish the player to have when running the command and they will be granted temporarily during command execution.
- You can set permissions nodes allowing players to view the true commands behind the sign.
- The true commands are linked to the text on the sign rather than the sign block. This means there will be no issues with sign block removal and modification. Hiddencommandsigns with the same sign text will run the same commands.
- You can make the hiddencommandsigns look exactly like a normal commandsign.
- If you understand the formatting, you can manually edit the human-readable database file. (Not recommended though)
How to create a HiddenCommandSign:
- Create a SimpleCommandSign as you normally would. The text on the lines that usually holds the command can be anything arbitrary now.
- Use: /hcs create "<command>" (Note: If your command contains quotation marks, replace them with "\''" - that is: forward slash, single quote, single quote)
- If the people running the sign need additional permissions to run the command, use: /hcs addperm "<permission>"
- Right click the sign and the command(s) you specified will be run!
Commands:
- /hcs create "<command>" ["othercommands"] - Creates a hiddencommandsign with the command(s) given within parenthesis. (Example: /hcs create "/cp points" "/day")
- /hcs detect - Tells you if the next block you hit is a hiddencommandsign and its author.
- /hcs obtainreal - Tells you the real command that will run when you right-click the sign.
- /hcs addperm "<permission>" ["otherpermissions"] - Adds the specified permissions to the sign. They will be given to the player right before they run the command, and removed immediately after. (Example: /hcs addperm "CommandPoints.give")
- /hcs quickcreate - If the text on a simplecommandsign already has a hidden command sequence linked to it. This allows you to turn it into a hiddencommandsign with the original commands.
Permissions:
- hcs.create: Can create a hidden command sign.
- hcs.detect: Can detect and get the creator of hidden command signs.
- hcs.obtainreal: Can get the real command behind the sign.
- hcs.addperm: Can add permissions to a sign.
- hcs.addperm.any: Can add any permissions to a sign, including those which they do not own.
Note: If you do not use Legacy Permissions as your permissions handler, remove any Permissions compatibility bridge (such as the one from Essentials) if you want to be able to use "/hcs addperm".
I am attempting to make it so people must go to the main spawn and click a sign to enter the Creative world, because warping is disabled on my serrver. However if they click the sign, it says You Do Not Have Access To That Command
I have done /hcs addperm essentials.warp.Creative To the sign, and yet it still says that.
@mrcb
That doesn't really make much sense though.... You can't run it as the server and still identify as a player, because the console is not a player.
thanks but that wont work as i need it to identify the players name thats activating it....
@mrcb
RedstoneCommandSigns does that O.O
If that's any help XD
does anyone know if you can run a command, not as the player, but as the server,
aka with full perms?
@cdh0127
You didn't read the note at the bottom of the description fool :P
You have a Legacy Permissions bridge. I find it to be a pitiful waste of time when people who don't read report errors.
I have a problem, when a player right clicks my HiddenCommandSign, it sends tons of errors, but when they are OP, no errors?
This plugin is filled with errors. Don't waste your time. http://pastebin.com/REpWZB8C
@mrcb
Check the PM :P
scrap the last comment i see there option for all that now....
my concern is now the /hcs addperm...
im adding the permission to run the /manuadd command to the sign....
But its causing a lot of errors in the server log and isnt working? The signs working fine, and adding people to the group, and im assuming if they dont have scs.use then they'll be unable to run the sign? The problem is they need the perm to run the command im using, causing me errors when im adding it!
please add my skype..... craig_b3
Deleted
@ghostyboy5
It already can handle multiple commands... Just enter them all when creating the sign...
@skippito
Not really... The node is scsigns.use... Make sure they have permissions for the commands on the signs themselves.
I've been using this plugin with groupmanager. I want it so that donators can use the sign. so i gave donators scsigns.use
in whatever case, they cannot use a sign ANY SIGN.
any help?
Edit: I should probably clarify that mods can.
Edit 2: After further testing, donators can use simple command signs, just not hidden command signs. no error or anything. am I missing a node?
Could you make it so that the sign can run multiple commands? For example; On my server I have a hidden sign in the spawn room people click to become a Member, and then another sign right next to it they click to teleport out. However some people just teleport out, as a guest. Could you make it possible for me to put both the rank, and the teleport commands on just one sign?
@Devil_Boy
Makes sense. Do u know of any plugin that would do that??
@psmith67
It may have to be set up externally. HCS is built mainly to be able to execute commands. You'll probably want to have a plugin that, after running a command, checks if the user has the money and gives them the class.
@Mystica999
This could just be GroupManager not allowing someone to elevate themselves? O.o
I'm honestly not sure and I'm sorry that I missed your comment earlier....
I am curious, Can you set up a command sign with iConomy in mind. Basically i want to set up a sign that will put players into the merchant class in my permissions and deduct 10,000 coins (which is my currency) from their account through iConomy. But prevent it if they don't have enough in their account.
The sign works perfect the way i have it set up however, if the player doesn't have enough coins, it puts them in the negative and still puts them in the Merchant class. I'm curious if there is a way to prevent this from happening.
I'm having a little bit of trouble using the addperm function. I'm trying to have a command sign that moves a default player to a different group. I'm running essentials and I did remove the compatibility bridge. Everything seems to work except when I de-op myself and make myself the default group, it doesn't work. I used this command /hcs addperm "groupmanager.manuadd" and the sign is: /hcs create "/manuadd %p [name of group]" When I do that it just says that I can't modify a player with the same permissions or greater. I added the group manager permission so I don't know why it is happening. I've literally tried everything and currently it only works when I'm oped, which isn't what I want. Is there a way to do what I want to do, using this plugin? If I can't, does anyone know one that does work?
EDIT: I even did /hcs addperm "groupmanager.*" Still no luck. I think I'm doing the addperm command wrong....
@amsedal
I don't believe this plugin works for your situation.
@hdm210
The plugin saves its database onWorldSave, however, we have been finding that this event hasn't been firing for some people. We'll likely need to revert to our old method of saving.
@aPandaification
Umm... Just do what you gave in your example. It should work fine? O.o