Empire Command Signs
This Plugin adds actions for rightclicking on your signs.
You can add an arbitrary number of Commands which will be executed by right-clicking the Sign. These Commands will be executed on a location defined by you! You also have the opportunity to set the needed permission to use the sign. You can also give temporary permissions to a player for executing the commands. As of Version Beta-0.4 you can use Economy to charge for using a sign.
Beta-0.3: Buttons can also be CommandSigns ;-)
Beta-0.3.1: You can also set a pressureplate (id 70 and 72) as CommandSign. To activate it, walk on it.
In Version Beta-0.3 and above you'll need the SQLibrary!!
Installing the Plugin (Beta-0.3 and above)
- Download the latest Version of this plugin AND of the SQLibrary. Do not forget this Step!
- (Beta-0.4 +) If you want to use economy you should have Vault installed on your server.
- Drop these files in your Plugins folder. Maybe you have to delete the config file to get the new entries, if you are upgrading.
- Start your server.
- (Beta-0.4 +) If you are not using economy, go into the plugin's Config file, set the useEconomy-value to false and reload the server.
Using a CommandSign
If it is a sign, just rightclick it (leftclick too if activated in config).
If it is a Button, toggle the Button by rightclick (to use it with the redstone output together). If activated in config, you can do a leftclick to use it without the redstone current (In my Opinion Minecraft uses only rightclicks to activate buttons).
If it is a Pressure Plate, place yourself on it. (No Clicking).
In some cases rightclicks doesn't work, because you have a block in your hand, which cannot be placed there. For Best Results Use A Tool
Creating a CommandSign
To create a CommandSign you must first place a Sign. Then you type "/ecs create" and rightclick the Sign to register this Sign in ECS's Database.
If you use a pressure plate please click too. Moving on it is only for Using the plate.
Adding Commands
Type "/ecs addcommand <Your command here>" to add a command. You must type the leading slash if it is an command. Otherwise the player would chat.
"/ecs addcommand time set 0" -> The Player sends the Message "time set 0" on rightclicking.
"/ecs addcommand /time set 0" -> The Player executes the command "/time set 0" on rightclicking.
Templates
It is possible to use the template "%player%". If you add it to your command it will be replaced by the executings' player name.
"/ecs addcommand Player %player% just used the sign!" -> The Player "John_Doe" sends the Message "Player John_Doe just used the sign!"
Adding temporary Permissions
Type "/ecs addperm <Your permission here>" to add temporary permissions to the player. These temporary permissions allow the player to execute commands which they normally are not allowed to. The permissions are revoked after the command executung process.
Modify a Command/Permission
Type "/ecs modcommand" or "/ecs modperm" then enter the Index of the command/permission and then the value to replace. The index can be received by the "/ecs info" - command on the sign. It's the leading number of each entry.
example: You want to modify the Permission number 4 to "john.doe" => "/ecs modperm 4 john.doe"
Remove a Command/Permission
Type "/ecs remcommand" or "/ecs remperm" then enter the Index of the command/permission.
example: You want to remove the Command number 2 => "/ecs remcommand 2"
Set the required permission to use this Sign
Type "/ecs setperm <Your permission here>" to set the required permission. The player must have this permission if he wants to use this sign.
Set the position where the plugins are executed
First move to the location where the commands should be executed. Then type "/ecs setloc" and right-click your sign. This is multiworld compatible.
Set the Sign to OP-only
Type "/ecs setop <true | false>" and then right click the sign.
Get Info about any CommandSign
Type "/ecs info" and rightclick the Sign.
Remove a Sign
Type "/ecs remove" and rightclick a CommandSign.
Commands
- /ecs create - Perm: ecs.admin - Creates a new Sign
- /ecs addcommand [optional: "id <value>"] <command> - Perm: ecs.admin - Adds a command
- /ecs addperm [optional: "id <value>"] <permission> - Perm: ecs.admin - Adds a temporary permission
- /ecs modcommand [optional: "id <value>"] <index> <newcommand> - Perm: ecs.admin - Modifies a command (index is visible in "/ecs info")
- /ecs modperm [optional: "id <value>"] <index> <newpermission> - Perm: ecs.admin - Modifies a permission
- /ecs remcommand [optional: "id <value>"] <index> - Perm: ecs.admin - Removes a command
- /ecs remperm [optional: "id <value>"] <index> - Perm: ecs.admin - Removes a command
- /ecs setperm [optional: "id <value>"] <permission> - Perm: ecs.admin - Sets the required permission. Default is ecs.use
- /ecs setloc [optional: "id <value>" "none"] - Perm: ecs.admin - Sets/removes ("none") the location of the commands execute
- /ecs setop [optional: "id <value>"] <true | false> - Perm: ecs.admin - Sets this sign op-only
- /ecs info - Perm: ecs.info - Gets info about this sign
- /ecs remove [optional: "id <value>"] - Perm: ecs.admin - removes this sign
- /ecs reload - Perm: ecs.reload - Reloads the plugins database
Beta 0.4 +:
- /ecs seteconomy [optional: "id <value>"] <None|Check|Withdraw|Give> <Value> - Perm: ecs.admin - Sets the economy status. Please avoid negative values.
Instead of rightclicking the sign everytime you can place a "id <Sign-id>" between the command and the argument. example: /ecs addcommand id 2 /time set 0 - this adds the command "/time set 0" to the sign with id 2. The id can be seen in the info of the sign.
Config-File
- leftclick: (default: true) - you can say whether you use only rightclicks, or leftclicks too (true: left AND rightclicking, false: only rightclicking).
- useEconomy: (default: false) - make use of economy features. (Features may be buggy).
- silentexecute: (default: false) - not fully implemented silent mode.
- debugMessages: (default: false) - toggle log spamming
Intended Upgrades
- Economy Support (check if a specified amount of money is available / charge money for use) - started, uploaded - need testers!
- Run Commands as Op
- Send the player a message
- Add the ability to prevent the command-executing plugins to send the player messages (i don't know how).
- Adding more Templates.... (less priority, if someone needs more Templates, send me a PM, i'll code that first then)
Known Problems (with other plugins)
- iSafe: Commands on a blacklist are not executed. (Not actually a problem ;-))
- Version 0.3b: Signs are not loaded properly because the sqlibrary was not in the dependency list - was fixed in 0.4
Special Thanks to:
- PatPeter for his SQLibrary
Information about the beta stage
This plugin is still in beta-stage so there can occur bugs which block some funtions of the server or influence the server in other negative ways. I will fix the bugs as fast as i can. Therefore there can be many updates in a short time period.
This Project on GitHub - Here you can get the newest of the newest version (dev builds). If you use this source you are the first one to get the buxfixes but also the first one to get probably new bugs.
Feel free to give me a feedback / send a ticket with suggestions and problems.
-
View User Profile
-
Send Message
Posted Jan 3, 2017Not working on my 1.11 server
-
View User Profile
-
Send Message
Posted Jul 24, 2015Nice plugin :) For some reason the Economy thing doesn't work on my server... But everything else is great! Please add it so you can run commands as op next :)
-
View User Profile
-
Send Message
Posted Feb 12, 2015@BlackDawn187
Yes that would be easy. Only if i can get eclipse working again with my workspace. I'll update when it is finished.
Iko didn't answer anymore so i think his problem is fixed.
I wonder that my plugin is still in use o.O ^^
-edit:OK, it seems that there ist not an easy solution in the javadocs of bukkit / spigot for something like "PlayerLeavePressurePlateEvent" and similiar. Would need to dig deeper.
-
View User Profile
-
Send Message
Posted Feb 12, 2015Hey @clusidc,
I'm just wondering if you could add support to your plugin for executing commands when a player steps off of a pressure plate as well? I don't imagine it would be that hard, All you would have to do is copy the code for the event when the player steps onto the pressure plate. An put it under the event where the pressure plate is released. Would also be handy if there was a ecs command for this. Like /ecs addcommand, For example: /ecs addcmdonexit?
Thanks again.
-
View User Profile
-
Send Message
Posted Feb 8, 2015is there a permission for the use of an ECS sign because i only want 1 rank on my server to be able to use it
-
View User Profile
-
Send Message
Posted Dec 30, 2014@iko_davalos
Hey iko,
Do you have a way to check if a player has a permission really assigned? because that sounds like that the permission is not given...
currently i don't have the material to dig into it. - I'm not at home. Also it is long ago since i last programmed plugins. the api could have changed.
Can you provide the versions of relevant plugins and the server? say commandsign version server version and permission plugin version?
I'll get into it after new-year if the problem persists.
Best Regards, clusidc
-
View User Profile
-
Send Message
Posted Dec 29, 2014For some reason nobody can use any command signs I make unless they're op. Op only is set to false and I added permissions to the signs and gave those to players, but they still can't use the signs
-
View User Profile
-
Send Message
Posted Aug 9, 2014@clusidc
Thank you very much!
-
View User Profile
-
Send Message
Posted Aug 9, 2014@ysrwhs
In /ecs info there is an entry for the id of a sign. you can add a command with rightclicking and not rightclicking the sign.
if you do "/ecs addcommand /time set 0" and then rightclick the registered sign then the command "/time set 0" is attached to the sign.
If you make "/ecs addcommand id 2 /time set 0" you add the command "/time set 0" to the sign with the id "2".
This is also written in the end of the"commands"-Section of the plugin-description.
"Instead of rightclicking the sign everytime you can place a "id <Sign-id>" between the command and the argument. example: /ecs addcommand id 2 /time set 0 - this adds the command "/time set 0" to the sign with id 2. The id can be seen in the info of the sign."
-
View User Profile
-
Send Message
Posted Aug 8, 2014In commandssubject you mentioned •/ecs addcommand [optional: "id <value>"] <command> to add a command to the sign. But I don' t know what you mean by optional: "id <value>" . Is this part of the words I shall type into the dialog box? And how? Can you give me and example? And what do ' id ' and ' value ' correspond to?
I would be appreciate if anyone can tell me about this!
-
View User Profile
-
Send Message
Posted Jan 18, 2014@Telemnor
I don't have tested it for 1.7.2 yet. After sleeping i will look into it. Does anyone have also the same problem?
-
View User Profile
-
Send Message
Posted Jan 18, 2014I have a problem. On 1.7.2, using ECS 0.4e, SQLibrary 7.1 and Group Manager, there's no way to give some temporary permissions to users.
Notably, worldedit.* and worldguard.* doesn't work... Don't know why.
-
View User Profile
-
Send Message
Posted Sep 24, 2013@saxons12
This is an interesting Idea. But currently this is not possible with this plugin. Maybe you can find a "Random Command"-plugin.
I'll keep the idea in mind for the next version. But currently i don't have much time because of school and similar things.
Best Regards, clusidc
-
View User Profile
-
Send Message
Posted Sep 24, 2013Is it possible to add a sign type which executes 1 random command from a list. So we can use it to make LuckySigns. Players can pay a certain amount of money and win any of the prices like a lottery.
-
View User Profile
-
Send Message
Posted Aug 21, 2013I like this plugin but can't use it until economy support is added
-
View User Profile
-
Send Message
Posted Aug 20, 2013@willkiller1234
Nope, I will put it as a goal into the next version.
@RyWalk2424
This will also be a goal for the next version.
-
View User Profile
-
Send Message
Posted Aug 17, 2013Is it possible to have them run the command as an op?
-
View User Profile
-
Send Message
Posted Aug 12, 2013I was playing around for a bit to try to get the sign to display a URL in chat to the player that clicked the sign, without having the player say it on global chat.
My fix having the sign execute the command /whisper console [message], that way the player is whispering it (i think that's in bukkit essentials) and not broadcasting the URL.
A feature for having silent messages to players would be cool, but my fix will get me by. Great plugin though, it did what I was hoping for, and it wasn't hard to figure out. Does anyone else have any other ways of displaying a private text message?
-
View User Profile
-
Send Message
Posted Aug 6, 2013@clusidc
Alright, I got everything working! I switched my permissions to GroupManager, and the permissions started working. The command sign that I made the other day did not work; it was saying the same thing as before. But I removed it and made a new one and it worked perfectly.
- Kurtis_
-
View User Profile
-
Send Message
Posted Aug 5, 2013@Kurtis1928
Please do so. If something is still broken, just ask me.