This site is not for solicitation of services or 'purchasing' development. Please do not post requesting side mods/plugins and so on. Your thread will be removed, and you will receive a warning.
However what you rather seem to be looking for is the SafePlace side mod which lets you set places throughout your map where players will be teleported to once all their Pokémon faint. You can set those at every Pokécenter and similar places and any player will find themselves there if they get defeated, just like in the original games.
Both of these are server side, so you don't need to have your players install them, just put them on the server.
However keep in mind that both will leave your players with a team of fainted Pokémon anyway - just in a different place. You'd either need to execute a /pokéheal command separately (can be added as a second trainer command as well) or have your tower's entrance check for a viable party somehow...
Edit: Oops, I misread... I thought you wanted your players to be teleported upon losing against an NPC, not winning. My bad. ^^;
In that case the Trainer Commands side mod is your tool of choice.
SKy2008 wrote:If you use the Trainer Commands side mod you can add a teleport command to the NPC. You'd need to do that for every NPC separately though.
However what you rather seem to be looking for is the SafePlace side mod which lets you set places throughout your map where players will be teleported to once all their Pokémon faint. You can set those at every Pokécenter and similar places and any player will find themselves there if they get defeated, just like in the original games.
Both of these are server side, so you don't need to have your players install them, just put them on the server.
However keep in mind that both will leave your players with a team of fainted Pokémon anyway - just in a different place. You'd either need to execute a /pokéheal command separately (can be added as a second trainer command as well) or have your tower's entrance check for a viable party somehow...
Edit: Oops, I misread... I thought you wanted your players to be teleported upon losing against an NPC, not winning. My bad. ^^;
In that case the Trainer Commands side mod is your tool of choice.
Does this actually work? Because Ill add a command to defeat a trainer such as /tedit add win spawn @pl and ill defeat the trainer but the command will not be executed.
Read documentation first before questioning whether something doesn't work.