Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to setup my bukkit server to run a small script (like, giving players basic items) when players respawn or enter a world for the first time (or cause every 10th respawn to be in another place). Is there a plugin to do this with bukkit?

share|improve this question
I don't believe there is, but perhaps with some more specifics, I could make it for you? What should the scripts be able to do? – Alexis King Feb 29 '12 at 22:38
@JakeKing giving the players a CommandBook kit for an easy example, and maybe a different one every 10th respawn. Or making them invulnerable for the first minute unless they leave the spawning region earlier, if you prefer a challenge ;-) – Zommuter Mar 1 '12 at 7:12
up vote 2 down vote accepted

Yes, it is possible to run a script on certain events like respawning or first join.

You will need two plugins to do be able to do this: Autorun and CommandHelper. This will assume you have both fully installed.

For this example, I want two commands to run when a player logs on.

  1. Decide what commands you want to use

  2. Create a new alias/macro in Commandhelpers config.txt with the following syntax:

    /macro_name = /command_1 \/command_2
  3. Do a server reload

  4. In game, create a Autorun identifier for your macro:

    /addacommand identifier_name macro_name
  5. Now bind the identifier to run when a player joins:

    /setjoincommand identifier_name
  6. Done.

This is a very simplified way of doing something like this, and both plugins are capable of much more. For instance Autorun can run commands when a player walks over a defined block; and Command helper can be used as an advanced scripting plugin.

Always make sure to read the instructions for both plugins before you start. However, you probably only need to read the beginners section of Commandhelper, as the rest covers very advanced scripting information.

Hope this answers your question.

share|improve this answer
This looks great, thanks a lot! – Zommuter Jun 6 '12 at 18:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.