RespawnHelper helps you automate minigames by allowing to run multiple commands instantly at a configurable respawn point.
It can also be used to run multiple commands on many players in only one command block at a configurable location.
I have created this plugin for my own needs for a minigame server and decided to share it with anyone in need for such a plugin.
It is compatible with Spigot 1.8.
This plugin is intended to be used in parallel with your existing minigames which run with command blocks.
The purpose of RespawnHelper is to run multiple commands on players who respawn at configurable positions (with minecraft command /spawnpoint)
Thus you don't have to put player into small rooms with droppers, dispensers, command blocks, to run whatever commands you need when a player respawn in a minigame.
With RespawnHelper you can choose which commands have to be run at which respawn location.
Let's assume you already have developped a pvp minigame with command blocks, etc ...
You certainly have used the command "/spawnpoint @p x y z" to make a player respawn at a certain position.
With RespawnHelper, go at that respawn location and type :
/rh create aNameOfYourChoice
This will create a new respawn point and a new config file in /plugins/RespawnHelper/worlds/yourWorld/aNameOfYourChoice.yml like that (example coordinates):
name: aNameOfYourChoice x: 1432.091578803372 y: 17.0 z: -582.8153181119726 cmds: []
The next thing to do is to modify by hand this config file to add the commands you want to run when a player respawn at that location.
You can prefix the commands with console to run a command from the console, otherwise the player runs it. Use %n% as a placeholder to target the player.
Example :
cmds: - console minecraft:give %n% diamond_sword 1 0 {ench:[id:16,lvl:1]} - say I'm back in game ! - console minecraft:tp %n% 100 50 20
What these commands will do is when players respawn at your respawn point, they will be given an enchanted diamond_sword, say some words and then getting tp at a new location.
The commands are executed on the players who respawn within the "respawn-checking-range" in "config.yml"
You can put as many commands as you want.
You can also add global commands. For example add another command "- global test" under "cmds:".
And in the section "global-cmds:" inside the file "/plugins/RespawnHelper/config.yml" add this :
global-cmds: test: - say a global command - say a second global command
This will help you factorize your commands into small reusable units for your many respawn points
To have access to these commands you need to be op or to have the permission node "rh.commands"
Players don't need any permission to be targeted by the commands when they respawn.