Command Signs
Make signs run commands!
CommandSigns allows you to assign any commands to any block making it easier for your players to do their command-based business!
Required Dependency
- Vault is required for CommandSigns. You can get it here: Vault
Features
- Run commands from signs or any other block with a single click
- Signs can have any other text on them, the commands are linked to the sign behind the scenes
- Elevate user permissions to run any command you choose
- Restrict who can use the sign and when
- Activate your CommandSigns with redstone
How To Use
- Place a sign (or block) and add any writing you want
- Add lines to your clipboard with /commandsigns line<number> <\text or /command>
- Right click the block to make it a CommandSign
Basic Tutorial
Advanced Usage (using money and permissions)
Reference Guide
Auto Updating
CommandSigns automatically checks for updates in order to keep your server up to date with the latest bug fixes! You can set CommandSigns to update completely automatically in config.yml, or to manually update, type /commandsigns update.
Videos
Video by luigi_vampa
Links
View Source on GitHub Feel free to contribute!
Help/Support
If you encounter a problem and it's not something covered by the tutorials and reference guide, please submit a trouble ticket using Bukkit's ticket requester in the menu above.
If it's something simple, post a comment and CJ will get back to you.
what are the permissions like "Essentials.tp"
Mate I don't think there are any commands, you can just restrict/permit who is able to use it.
Watch tutorial by Koz
- Spiddy
@overdraft015
/setblock is tricky. It took me a while to figure it out. Basically, it is one of the many commands that cannot be run as CONSOLE. Not only that, but it Must be run directly by a player in order to function. The only way I could make it work was using /sudo <player> setblock ...
I potencial alternative, in possible, is use the pos1 x y z pos2 x y z commands associated with World Edit. Then simply use set ... This would, potentially, work but would must likely also need to be run as that user. However, unlike /setblock it can be directly by the user using /*/pos1 x y z then /*/pos2 x y z, finally /*/set ....
...If that makes sense. Basically, you can run it without a sudo. But setblock by itself has major issues. If you are ok with some user-spam, You can use /sudo <player> setblock ... I've used this in some arenas and the only side-effect is "Block placed." spam.
If you are interested, Check out mc.endlesshorizons.co.uk and ask for me or send me a /mail
Is anyone able to /setblock with commandsigns? or is it bugged for you also. I'm trying to rule out if its my server or the plugin. If someone could test and let me know that would be great.
This is the error (theres way way more lines of the error though): Could not pass event PlayerInteractEvent to CommandSigns v1.9.3 org.bukkit.event.EventException
@hollo2
Strange. I recall a while ago when we updated WorldEdit, it briefly solved the issue... I wasn't paying attention when it happened, so they may have been just new Signs, but potentially... I'm wondering if has links to WorldEdit? Not trying to point the finger here, just something I encountered (and our server has some unusual features so...might be just us)
@hollo2
@hollo2 I think it happened in 1.9 as well, if I recall. Oddly, the signs usually work properly while I'm setting them up, sometimes even longer. Then they revert to punch = 1 click, rightclick = 2 clicks
Is it possible to prompt a user for an input for signs? I haven't noticed any documentation regarding this. Any thoughts?
@overdraft015
I ran into this issue too. For this...you can do what CWDF suggested, using Command Blocks, but honestly that is very messy, and means you have to have Command Blocks enabled. Even easier though, is simply edit the CommandSign signs.yml and edit the command in question. DO this with the server offline however - don't simply use /cmds reload, because this can cause issues on rare occasions. Also, remember to back up signs.yml prior to restarting.
@Omanoctoa
This is happening to me too - i think its due to 1.10
an update would be nice :)
@PsycoPandaLover
Also this happens on a server crash its annoying af and its a good reminder to backup your signs.yml
I had set up over 100 signs, they worked for like 2 days and then they all stopped working, i restarted the server and they still dont work. It took me forever to set them up. What happened? How do i get them back? I dont wanna redo them all if they will stop working again.. Please help...
@overdraft015
you could put it in like a command block and have the sign run a command like /setblock x y z redstone_block to activate it and another cmd block to remove the redstone block after?
I might of missed something, but is there a way to do long commands? I am trying to run a command that's too long to fit inside chat. I don't have console access so importing isn't an option.
Thanks.
I don't think it's directly CommandSigns causing this, but anyone else encountering a bug where commands are being run twice when a player right-clicks a block? Punching (left-click) a block works normally.
@BaconGeek
yes
I'm pretty sure the answer is yes, but the lack of a config file is normal, right?
working perfectly on spigot 1.9.2
Any chance of adding functionality for the /testfor command as a usage-check? SO if I were to run a /testfor command and it returned false, it would respond the same as a generic permissions-check or cost-to-use sign?
@Ninjafar
If you haven't visited the PermissionsEx dev page yet, check it. This is probably an issue with your permissions file and 1.9, which I had too. To fix it, add the inheritance: [] tag to each group in your permissions.yml file - that's how I fixed it. If you need help with this, send me a PM :)
I have a server where you can choose races when you click a sign, which is linked to permissionsEx. Example: ./commandsigns 1 /pex user <player> group set elf .... ect.. you know. And when im opped I can click the sign. But when i put myself into default group I cant click the sign?? I gave myself the permissions from: http://dev.bukkit.org/bukkit-plugins/command-signs/pages/reference-guide/permissions/ And it didnt work. I even gave myself commandsigns.* and it still didnt work.. please help :C
@xIcyTwelve
Yes you can bind any number of commands to a single CommandSign. Just use...
As for you second question regarding the give command, CommandSigns does not use basic targeter syntax (@p) instead uses <variables>. So, you want to use something like this instead...
@frizzbee30
It actually doesn't work. At least on spigot 1.9 (wich has bukkit 1.9 as base). Do i have to do something more?
Edit: It actually work with a version on the page of Spigot.