[MECH] Autorun Commands v3.2.4 - Set custom commands to run automatically [1.5.2-R1.0]

Discussion in 'Archived: Plugin Releases' started by LittleGruz, Oct 24, 2011.

  1. Offline

    LittleGruz

    Autorun Commands - Set custom commands to run automatically
    Version: 3.2.4

    Made in response to this thread.

    Visit the BukkitDev page for more details and downloads.

    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 plugin!

    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 joins
    • Allows the execution of a command when a player first joins
    View the source here.

    Check out my sweet site here.

    Enjoy my mods? Donate here! Dislike my mods? Donate here (and give feedback)! Powers of two are cool (e.g. $1.28, $2.56, etc.).

    Changelog:
    Past versions (open)
    Version 3.2.2:
    • Allow death commands to be set with GLOBAL.
    • Fixed problem of not being able to set OP commands for auto death commands.
    Version 3.2.1:
    • Replaced depreciated code.
    • Fixed some player messages.
    Version 3.2:
    • Option to have a delay for join commands added.
    • Bug fix for OP startup commands.
    Version 3.1.2:
    • Fix for when Multiverse would not load before AutorunCommands.
    Version 3.1.1:
    • Support for the plugin MultiWorld.
    Version 3.1:
    • First join commands.
    • Toggle for first join commands.
    • Multiple join commands executed.
    Version 3.0.3:
    • Fixed bug where respawn commands are executed when player was loading.
    Version 3.0.2:
    • Fixed bug which caused multiple instances of repeat commands to run.
    Version 3.0.1:
    • Fixed bug which occurred if there was no join command.
    Version 3.0:
    • Finally fixed multiworld bug.
    • Added display commands for blocks.
    • Added display commands for repeating tasks.
    • Added display commands for commands.
    • Command blocks can only be destroyed by an OP player.
    • Remembers the time remaining for a repeating task when the server is shutdown.
    • Allows commands to be executed when a player joins.
    Version 2.7.2:
    • Remove repeat command bug fix.
    Version 2.7.1:
    • Bug fix which caused the repeat commands to be saved and read incorrectly.
    Version 2.7:
    • Allows commands to be executed at a set frequency.
    Version 2.6:
    • Allows commands to be executed upon a player's death.
    • A myriad of bug fixes
    Version 2.5:
    • Allows buttons to cause a command to execute.
    • Fixed op command removal.
    Version 2.4.1:
    • Changed event listeners to support the new Bukkit event system.
    Version 2.4:
    • Added op support for command blocks.
    • Added a remove command command.
    Version 2.3:
    • Added ability to set commands to run at server start up.
    Version 2.2:
    • Added the ability to assign commands which are run by an op (console).
    • Allow commands to be executed upon player execution.
    Version 2.1:
    • Made command blocks more responsive.
    Version 2.0:
    • Gave blocks to ability to initiate the execution of a command.
    Version 1.0:
    • Added the ability to have a global command.
    Version 0.1:
    • Release.
     
    sk8r776 and Lextao like this.
  2. Offline

    LittleGruz

    Looks a bit like COOKIE_EATER_13's problem above. Have you assigned an identifier to your command with /addopcommand (or /addacommand if it does not need OP privileges)?
     
  3. Offline

    skywalk

    Tried adding "/addacommand /time set 0"
    But still won't work on number to intervals. "0 600"
     
  4. Offline

    jycs

    I found a solution since a long time... It was for you man. :confused:
     
  5. Offline

    Jacobah

    I'm having a problem using the respawn commands.

    Here's exactly what I entered to set up the command:
    /addopcommand Respawn give Jacobah 271 1 [command successfully gets added to list]
    /setrespawncommand Respawn Jacobah [command successfully gets added to list]

    For the /setrespawncommand, I have to actually be connected to the server for it to go through, otherwise it says it can't find Jacobah. Which means that if I successfully add that respawn command that the server and your plugin knows that I'm connected. However everytime I respawn I get a message saying "Can't find user Jacobah". Have you seen this problem before? I'm also connecting to my server locally if that matters at all.
     
  6. Offline

    Beimeith

    Are you trying to have the command "/time set 0" repeat every 600 seconds?

    If so, what you want to do is this:

    1) /addopcommand reset_time time set 0
    2) /addrepeatcommand reset_time 600

    The first one creates a command named "reset_time" that will execute the command "time set 0"
    The second one tells the server to run the command "reset_time" every 600 seconds.
     
  7. Offline

    ckent741

    MAJOR PROBLEM, When I Use The AutoRun Commands To Display A Broadcast, It Works, But It Displays Loads Of Messages Instead Of Just The 1 Message I Intended! HELP!
     
  8. Offline

    skywalk

    Wouldn't you be needing "/time set 0" ( / )
    I'll try it out though. Thanks!

    *it works either way. <3
     
  9. Offline

    Dominic

    If you can, post a step-by-step of what you're doing, so we can see if there is a mistake anywhere!
    Thank you!
     
  10. Offline

    skywalk

    Hmm. For some reason, the time set 0 command runs itself 4 times per set time?
    It's only showing up once in the list.

    What could cause this?

    And can't you have multiple join commands?
     
  11. Offline

    LittleGruz

    I do not know, but I am getting that problem too. I am looking into it now.

    Not yet.
     
  12. Offline

    ConFire77

    How about first join commands? When a player joins the server for the first time and only that time it will run a command? I would find this useful, not sure if others necessarily would so maybe you would be better off fixing something else.

    Thanks
     
  13. Offline

    LittleGruz

    skywalk
    Just released version 3.0.2. It fixes that bug where repeat commands get executed multiple times.
    Sounds like something that would already be part of another plugin. But that seems like it can be useful to many people.
    EDIT: Do you reckon that the players first join command should replace the normal player join command or be executed as well as the normal player join command?

    Dominic Beimeith
    Thanks for helping out in this thread!
     
  14. Offline

    Beimeith

    Certainly, thanks for making a great plugin!

    I might suggest that there be an option for whether or not the regular join command is executed as well as a first join command as it seems to me like it really depends on what the commands are, and that is up to each individual person.
     
  15. Offline

    ckent741

    Naa, Forget it, I Will Just Use A Different Plugin
     
  16. Offline

    LittleGruz

    Daww, shucks.

    That situation is precisely the one which I thought of, the solution however, I did not. That could be implemented nicely with some sort of toggle.
     
  17. Offline

    skywalk

    Thanks alot mate! I appreciate your work! :)
     
  18. Offline

    LittleGruz

    Thank you!
     
  19. Offline

    LittleGruz

    Jacobah

    Version 3.0.3:
    Fixed bug which would cause problems with the respawn commands.
    This bug occurred because the player respawn event occurs when the player is loading, and during this loading phase the player is unable to be found on the server for whatever reason.
     
  20. Offline

    Jacobah

    I thought it was because of something like that. I just downloaded it and it works great now! Thanks for the speedy update!
     
  21. Offline

    ConFire77

    Sorry its taken me what.. 10 days to reply? Been a little busy with finals.

    Anyways, I looked around for another plugin that accomplishes this and found nothing. I'm not sure about your question, maybe a toggle for server owners to individually choose? I don't know much about code, so I don't really know how difficult that would be.

    Thanks and this is a great plugin even without my suggestion!
     
  22. Offline

    LittleGruz

    I am in the same boat, mate.

    I am glad I have created so much OC in a place of lots of clones.
    I can indeed make some kind of toggle as you (and others) have suggested. So I think that is how I will end up implementing it.
    *happy dance*
     
  23. Offline

    LittleGruz

    Since an op has to run the /kill command normally, what you wrote is correct apart from needing to use /addopcommand instead
     
  24. Offline

    LittleGruz

    Version 3.1!

    Multiple commands can be run now when a player joins a server. You can also set commands to only run on the first time a player joins a server.
     
  25. Offline

    LittleGruz

    Oh, right. If you want it to have the players' name, use "potato".

    e.g.
    If the command '/kill potato' is set to a block and someone walks over it, the command executed will be '/kill [player_who_walked_over_it]'
     
  26. Offline

    LittleGruz

    Drat. You too. This is quite problematic since it does not seem to happen to me. Does the block information get saved to the blockList.txt file?
     
  27. Offline

    cray_Z

    This is a great concept, I find it a bit confusing to use, but I got it now
     
  28. Offline

    LittleGruz

    Do you use a multiworld plugin? If so, which one is it?
     
  29. Offline

    Dominic

    Hum, I use Multiverse and recieve no problems...However I only setup commands on the 'main' world. I wonder if this has anything to do with it...I can test out setting up a block command on another world that isn't the main and see if Multiverse causes the problem. Possibly the worlds fail to load, or do not load quickly enough, for the plugin? So it recognizes the block as destroyed?
     
  30. Offline

    LittleGruz

    Ok, if past events are to go by, then it is because you are using a mulitworld plugin that is not Multiverse or My World. For it to be saved/loaded I need to add a 'depend' statement

    Which is something I will do when I find this 'MultiWorld' plugin

    Version 3.1.1

    Support for MultiWorld added

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  31. Offline

    DinoScope

    How would one go about making it auto-run "F Save" every 15 minutes?
     

Share This Page