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.
@littlegruz
hi mate im having trouble with the plugin, it runs all commands fine for op players :/ but other players it doesnt run the commands, is there a permisison node or something ? cuz i didnt see it anywhere.
@atomfitz
Since the error is a ConcurrentModificationException it sounds like when /save-all is being run, some other program is accessing a resource which /save-all wants to modify. Would you have any idea what other program might share a resource (e.g. file, internal data structure) with /save-all?
I have been getting this error on occasion since before and after the update.
http://pastebin.com/5pQbNLPJ
It happens sometimes when I use a scheduled repeat of /save-all, as is the case in that example.
Let me know if there is any more information that would be useful to you.
@cuniculator
You should find that it already exists as the 'GLOBAL' term. Step 2 describes its use.
Is it possible to get something like a 'everyone' variable? Since for now it seems my commands I put in only execute on myself when not giving a name of a player, This would help a lot!
@sabasNL
I am glad you like it!
Thank you! I really needed a plug-in like this. Works exactly as promised.
Good news everyone! It seems that this still works with the more recent Bukkit versions, but has some code that has been marked for removal. So this new version has that code replaced.
@PhoenyxCZ
It works just fine as far as I can tell on 1.4.7. Granted I haven't tested everything yet, but so far so good.
Hi, i need this or simmilar plugin on version 1.4.6. Any help?
@Speedrookie
I am having difficulties understanding what you want, so tell me if I am wrong:
In response, 1. is outside the scope of this plugin and is possible anyway and 2. can already be done with the repeat commands in this plugin.
i do not know if this is still active but it would be nice to add in a broadcast message per say when i reset my mines with this i would like to warn people that the mine is resetting at 5 mins and a countdown from 10 sec. it would be much appreciated to add in broadcast-able messages at certain times! Thanks
@HuntHoot
My apologies. You are doing nothing wrong, it seems that the respawn command only works when a players name is given. Which (when thinking about it now) seems very silly.
Hey, so, I am having an issue.
Here is what I WANT to have happen: when a player respawns, he will be disguised as a zombie via disguisecraft and be put into a new permissionsEX group. Here is what I try: /addopcommand d disguise zombie then /setrespawncommand d GLOBAL but, what happens is, it tells me "No player found with that name". What am I doing wrong?
@e1kfws7
Thanks for reading.
I still have Bukkit Dev set up to email me when people make comments so if I do eventually get around to working on my plugins again, I know what needs to be fixed.
Guys stop complaining he said: Due to my current workload, I am now putting this project on a feature freeze.So stop with the errors i'm sure he knows!
This plugin needs to be updated for CB 1.4.5
cause it shows random error messages in console.
Is there a way to string multiple commands together? like /setclickcommand wassup,wassup2,wassup3 GLOBAL
@ TheOneRelic
I'm getting this exact same error. It was functioning fine for weeks, and then it randomly messed up. Even replaced the taskRemainder.txt manually, with no success.
Edit: I solved the problem by replacing all the files within the autorun commands folder with an old version of the files from my backup folder. It pays to backup your plugin folder from time to time. If you have access to any backups of this folder it should fix your problem.
im getting this spamming the console
http://pastie.org/4693118
Also the file taskRemainder.txt keeps geting cleared which may be the source of the problem im having.