[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. Can not do in some way, to affect the players in general?.

    For example:

    /addopcommand Blindness potion potato blindness 1200

    Chat says:
    "Command added"

    /setdeathcommand Blindness potato

    So every time a player dies, we apply the potion of "Blindness" by 1200 ticks (1 minute).

    When I do this, I get a message that says, "No player found with that name" :(
     
  3. Offline

    LittleGruz

    You used 'potato' correct in the '/addopcommand', but it can not work the way you used it in '/setdeathcommand' since the plugin would have no idea who you are referring to.

    So in this case, when you run '/setdeathcommand Blindness potato' it is trying to find a player called "potato". If you want a command to be run when anyone dies, use 'GLOBAL' instead of the player name. e.g. '/setdeathcommand Blindness GLOBAL'

     

  4. Does not work for me.

    I get the message: "No player found With That name".

    I configured the command like this:

    /addopcommand Blindness potion potato blindness 1200

    Next:

    /setdeathcommand Blindness GLOBAL

    And I get the message: "No player found With That name".
     
  5. Offline

    LittleGruz

    My apoligies, I just checked the code and found a discrepancy between the death command capabilities and the command setter. I will endeavour to fix that soon.

    Lummox
    With version 3.2.2 I hope you find that the problem is now fixed. If not, please let me know.

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

    LittleGruz

    While I am not really keeping this page up to date well, the BukkitDev page will always be current.
     
  7. Offline

    iSnowden

    Hey LittleGruz , I'm just wondering if its possible to make it so when you right click a button it will automatically rank that person up with GroupManager?
     
  8. Offline

    LittleGruz

    If all it takes to rank someone up is to run a command, then it should already be possible.
     

Share This Page