Autorun Commands
Want to execute a command which displays stats just by right clicking the desired player? Or how about giving them a rose or 64 many, many times with ease? Or even make a command run which kicks players if they walk over a certain block? You can do that and more with this mod!
Features:
- Allows the execution of a command simply by right clicking on a player.
- Allows the execution of a command simply by walking over a block.
- Allows the execution of a command simply by pressing a stone button.
- Allows the execution of a command simply by dying
- Allows the execution of a command simply by respawning
- Allows the execution of a command at server start up
- Allows the execution of a command on a regular interval
- Allows the execution of a command when a player join
How to use:
Step 1:
- Assign a command to an identifier.
- For this example, we want to say 'Hello <playername>!' and we will assign it the identifier "wassup"
- type: /addacommand wassup say Hello potato!
- Adding the word 'potato' will substitute the name of the player who is the target of the event
OR
- Assign an OP command to an identifier.
- For this example, we want to give me 64 TNT blocks and assign it the identifier "TNT_spam"
- type: /addopcommand TNT_spam give LittleGruz 46 64
Step 2:
- Assign the identifier to an appropriate event.
- For this example we will assign "TNT_spam" to occur every 10 minutes (600 seconds) and to assign "wassup" to be run when a player right clicks another player
- type: /setclickcommand wassup GLOBAL
- NOTE: The use of the word GLOBAL (all caps) means that when anyone right clicks someone, "wassup" will be run instead of just me running it
- type: /addrepeatcommand TNT_spam 600
Step 3:
- Watch them trigger!
- Now if I right click someone called "Bruce". I will execute the command '/say Hello Bruce!'
- And every 10 minutes I will get a full stack of TNT
Future plans:
- Sleep
If you have any comments or questions, please head on over to the forums.
View the source here. Check out the main website here.
Apparently, the lovely Socram8888 has fixed an error in my code that produces ConcurrentModificationExceptions. Get it from Github here.
Plz group command on join support :P
how can i make it so when anyone dies, a command automatically runs?
according to what i see here, i have to give each individual player a death command? is it possible to set a global death command?
@Mixon87
Apparently, yes
very odd... after restart all configured block auto OPcommands are reseted.
It works if I add my autorun commands with plugin's commands, but not at startup :/
Okay sorry, take your time ;)
@telephonekiosk
It should be fixable, just tricky to get to.
@Tetdoss
I wont. I just need time.
Don't forget our issue :)
Thanks
@littlegruz
Is it not fixable? :(
@telephonekiosk
Drat, could have been simple :(
@littlegruz
Yeah, I'm running the most recent version.
@telephonekiosk
This is a bit jarring. The line which it errors at is completely blank. Are you using the most recent version (v3.2)?
I've been getting these errors every time I make the plugin perform a save-all:
I've also been getting errors about the plugin not shutting down properly when I do reloads.
I'm using Websend little : http://dev.bukkit.org/server-mods/websend/
Every 120 seconds, I want to send a command with your plugin (/ws checkvip), this command checks if there are players who aren't VIP anymore, it permits to execute PHP code and access to the BDD
Thanks again ;)
@littlegruz
The only plugins I use with it are essentials and rateofxray. I have like 40-some plugins and I can easily get a list of all of them if it will help.
Edit: Oh, yes, I use nolagg (2 g's) with it also. What I mainly use it for is to keep specific worlds stuck at day time and also be able to monitor the tps and xray level from the console.
Edit: One more thing, I only ever use repeat commands running op commands.
@Daffy1234
@Tetdoss
I think I may have figured it out. The error may be because the commands that you want to be run are from plugins that have not been loaded yet. So I can fix this if you link me the plugins which you are using with the start-up commands.
@Daffy1234
Curious. The error is at the exact same place as Tetdoss'.
And It could be fun if you we can decide an execution of a command every day at 12h for exemple
I get this error every time the server starts and none of the repeat commands run as expected.
http://pastebin.com/CTMa14SD
I run the server at 4gb if it helps. The error started when I lowered the ram down to 2gb to allow more ram for school stuff. The error kept happening even after I raised it back to 4gb.
EDIT: Looking at some of the other posts, I realize this is a common issue. The thing I don't understand is that it did not go into as much depth with the error as others.
For you :
http://pastebin.com/rFGYFWA5
I have this errors only when the server is starting.