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?
|
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.
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. |
||||
|
|
kitfor 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