Configuration
Master spawn mechanics by editing config.yml.
π€ What is it for?
The config.yml file allows you to set rules for when players use /spawn (learn about all commands here) and for when they join the server. Here you control if there are wait times (cooldowns) or if you charge money for using the command through Vault, in addition to activating visual effects.
# X-SetSpawn Configuration
language: EN
per-world: false
check-updates: true
# Teleportation Mechanics
cooldown:
enabled: true
time: 10
delay:
enabled: true
time: 3
cancel-on-move: true
# Premium Visual Effects
titles:
enabled: true
actionbar:
enabled: true
hologram:
enabled: true
text: "&aTeleporting in &e{0} &aseconds..."
# Economy Integration (Requires Vault)
economy:
enabled: true
cost: 50.0
# Proxy Support
proxy-support:
enabled: false
server: "lobby"
aliases: ["hub", "lobby"]Advanced Protections
- Void-Teleport: Automatically teleports players who fall into the void back to spawn.
- Post-Teleport Protection: Keeps players safe from damage for a few seconds after teleporting.
π οΈ Practical Example: Preventing players from escaping combat
π View Code Example / Cases
If you donβt configure a delay (wait time), players in your Survival/Factions server could use /spawn instantly to flee when they are about to die in PvP.
To avoid this, you must configure the delay section like this:
delay:
enabled: true
time: 5 # The player must stand still for 5 seconds before being teleported
cancel-on-move: true # π‘οΈ If they take a single step, the teleportation is canceledWith this simple configuration, you will ensure fair battles on your server.