Setting Up Random Teleport(RTP) via NPC
This guide explains how to create an NPC that players can use to perform random teleportation (RTP) using the Citizens2 and BetterRTP plugins.
Prerequisites
Make sure the server meets the following:
- The Citizens plugin has been installed and is active
- The BetterRTP plugin has been installed
Plugin Installation
-
Download the plugins from:
- Citizens2: Jenkins (Installation Tutorial)
- BetterRTP: SpigotMC
-
Place the
.jarfile into theplugins/folder -
Restart the server to activate the plugin
Set the RTP Radius
- Check the BetterRTP plugin's
config.ymlon the server
Default:
UseWorldBorder: false
# # "Biomes: []" means all biomes are allowed! #
# # Biomes are optional, more biomes at https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Biome.html #
Biomes: []
MaxRadius: 1000
MinRadius: 10
Adjust the RTP radius so new players get a fresh spot when they RTP, somewhere that hasn't been colonized by other players.
- Save & Reload the plugin
/rtp reload
Creating the NPC
- Stand at the location where the NPC will appear
- Create the NPC with the command:
/npc create rtp
- Set the skin or entity type (Optional):
/npc skin <player_name>
/npc type end_crystal
- Add the RTP command when the NPC is clicked:
/npc cmd add rtp player <p> (rtp destination) -r -l
Example:
/npc cmd add rtp player <p> world -r -l
/npc cmd add rtp player <p> world_resource -r -l
/npc cmd add rtp player <p> world_towny -r -l
This command will run the /rtp command for the player interacting with the NPC.
Hiding the NPC's Name or Editing It
- To hide the name of the npc you can use the command:
/npc rename &r
Or
/npc hidename
- Rename the NPC, example:
/npc rename &f- = &d&lStart the Game&f = -
Notes
- Check the commands on the NPC with
/npc cmd list - Make sure the player is transported to a random location according to the configuration
- Check the console if an error occurs or the command doesn't run
Additional Tips
- Use /npc cmdinfo to see the commands that have been added
- For a more attractive look, combine it with holograms (for example using the HolographicDisplays plugin)
- Make sure RTP permission is given to players so the command can run