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".
-
View User Profile
-
Send Message
Posted Apr 21, 2012@woodendinosaur
XD
I always knew that having the database human-readable rather than serial would help.
-
View User Profile
-
Send Message
Posted Apr 21, 2012@Devil_Boy
Arrgh (its a good Arrgh) After trying numerous approaches, I finally got it to work. It was the way that perm negation worked with how i had my permissions.yml set up. So both plugins are working appropriately for my needs. Sorry for the red herring :( but thanks for the response! P.S. I couldn't have done it without being able to edit the Hiddencommandsigns.ini /party
-
View User Profile
-
Send Message
Posted Apr 21, 2012@woodendinosaur
The %p is handled upon sign right-click, so MagicSpell's aliases shouldn't interfere. Do you know how they detect whether or not you know the spell?
-
View User Profile
-
Send Message
Posted Apr 21, 2012I am having an issue using another plugin command with this, particularly MagicSpells. If I try to cast the forget spell on a sign, it tells me I do not know this spell (MagicSpells plugin generated response). MagicSpells has its own aliases for caster, %c and target %t. Would these interfere with the %p alias corresponding to the sign user? If so, is there a work-around? Other than that, this is working fine for me :D. On an aside, the forget spell was recently tweaked in MagicSpells, so it could be the culprit. I thought I would pose a question to folks in the know if this was a previous issue for someone else or if I am missing something. Thanks guys!
-
View User Profile
-
Send Message
Posted Apr 18, 2012@bladedpenguin
The HCS database is saved on WorldSave events. When or how Bukkit triggers them? I have no idea..
-
View User Profile
-
Send Message
Posted Apr 18, 2012@JadeonAcyrid
I'm getting the same thing with xpBottle
Also, having a persistance issue. HCS didn't stay an HCS after restart
-
View User Profile
-
Send Message
Posted Apr 17, 2012@HeXas92
/hcs create "/say hi!" "/say it works?!?"
-
View User Profile
-
Send Message
Posted Apr 17, 2012how do i make multiple commands? or add a command on a HCS sign?
-
View User Profile
-
Send Message
Posted Apr 16, 2012@JadeonAcyrid
I just looked through the code and honestly, I have no idea why that would be happening O.o
You may have to just fix this by editing the database file.
-
View User Profile
-
Send Message
Posted Apr 16, 2012@Devil_Boy
Devil_Boy I was just checking something with obtain real and any permissions i set such as
/hcs a "iConomy.accounts.take"
is stripping the a's out of the permissions. Leaving them as "iConomy.ccounts.tke". Any thoughts?
-
View User Profile
-
Send Message
Posted Apr 16, 2012@JadeonAcyrid
I'm fairly sure that would be an issue with the shop plugin. We'd have to look at the code to see how it works.
-
View User Profile
-
Send Message
Posted Apr 16, 2012@Devil_Boy
Having an issue where if I issue a shop command such as /shop buy 313 via a hidden command sign it only gives me the item if the currently selected slot is empty. Otherwise it deducts the money and does not give the item. Any thoughts? Shop plugin I am using is CommandShop by Zolcos
Edit: After further inspection it is in fact giving you the item, however the item isn't showing up in inventory until you relog... may be something on CommandShops end.
-
View User Profile
-
Send Message
Posted Apr 13, 2012@seventhdimension
It already has that ability.
-
View User Profile
-
Send Message
Posted Apr 13, 2012you need to ad %P to hiddencommandssigns :( please and upload it soon
-
View User Profile
-
Send Message
Posted Apr 3, 2012xD My god this works amazingly! Thank you!
-
View User Profile
-
Send Message
Posted Mar 29, 2012awww well ok but it wont let me do this group manager "cannot modify a players with the same permissions as you or higher" when i try set myself as default then add myself to the builder then i hit the sign
-
View User Profile
-
Send Message
Posted Mar 29, 2012@seventhdimension
Alright, that means I can go to sleep now XD
Good luck
-
View User Profile
-
Send Message
Posted Mar 29, 2012i found it but now i am getting other errors no worrys ill fix it and tell you if i cant ok :P
-
View User Profile
-
Send Message
Posted Mar 28, 2012@seventhdimension
I believe it could be the "Permissions" one. Give me the list of files in your "plugins" folder. I'll tell you which one to remove.
-
View User Profile
-
Send Message
Posted Mar 28, 2012Plugins (30): GroupManager, Towny, Buycraft, SimpleCommandSigns, Vault, Questioner, AutoMessage, iConomy, Register, HiddenCommandSigns, Permissi ons, pvparena, FalseBookCore, mcMMO, FalseBookCart, Essentials, Citizens, Jobs, EssentialsXMPP, TownyChat, EssentialsProtect, FalseBookChat, FalseBookBlock, Ess entialsSpawn, EssentialsGeoIP, LWC, FalseBookIC, ChestShop, EssentialsChat, Fals eBookExtra
does this help witch one do i need to remove what would it look like