- Teleport players to the Spawn Point on falling in to the void [v2.1]
- Support up to MC 1.26.2
commands:
spawn:
description: Teleport to the server spawn
usage: /spawn [player]
setspawn:
description: Set the server spawn at your position
usage: /setspawn [world]
firstspawn:
description: Go to the first spawn (where new players appear)
usage: /firstspawn
setfirstspawn:
description: Set the first spawn (new players) at your position
usage: /setfirstspawn
lobby:
description: Go to the lobby (proxy network server or this server's spawn)
usage: /lobby
aliases: [hub]
delspawn:
description: Delete the stored spawn, first spawn or per-world spawns
usage: /delspawn [spawn|firstspawn|world|all] [world]
aliases: [removespawn]
advancedspawn:
description: AdvancedSpawn admin commands
usage: /aspawn [help|reload|tp|tpall|del|setworldspawn|spawn|firstspawn|setspawn|setfirstspawn]
alia
ses: [aspawn, asetspawn]
permissions:
advancedspawn.*:
description: Full access to AdvancedSpawn
default: op
children:
advancedspawn.spawn: true
advancedspawn.spawn.others: true
advancedspawn.tpall: true
advancedspawn.setspawn: true
advancedspawn.setfirstspawn: true
advancedspawn.delspawn: true
advancedspawn.lobby: true
advancedspawn.firstspawn: true
advancedspawn.admin: true
advancedspawn.bypass.delay: true
advancedspawn.bypass.cooldown: true
advancedspawn.spawn:
description: Use /spawn
default: true
advancedspawn.lobby:
description: Use /lobby
default: true
advancedspawn.spawn.others:
description: Send another player to the spawn (/spawn <player> or /aspawn tp)
default: op
advancedspawn.tpall:
description: Send every player to the spawn (/aspawn tpall)
default: op
advancedspawn.setspawn:
description: Use /setspawn (including /setspawn world)
default: op
advancedspawn.setfirstspawn:
description: Use /setfirstspawn
default: op
advancedspawn.delspawn:
description: Use /delspawn to delete stored spawns
default: op
advancedspawn.firstspawn:
description: Use /firstspawn
default: op
advancedspawn.admin:
description: Use /aspawn help and /aspawn reload
default: op
advancedspawn.bypass.delay:
description: Skip the teleport delay
default: op
advancedspawn.bypass.cooldown:
description: Skip the /spawn reuse cooldown
default: op
advancedspawn.bypass.tpall:
description: Not affected by /aspawn tpall
default: false
# ============================================================
# AdvancedSpawn - Configuration
# Compatible with Spigot/Paper 1.8.8 -> 1.21+
# Bedrock players: supported via GeyserMC + Floodgate
#
# * Colors with & (e.g. &a) and hex &#RRGGBB (1.16+)
# * Any message set to "" is HIDDEN (never sent)
# ============================================================
# Prefix of all chat messages
prefix: "&8[&bSpawn&8] &7"
# ------------------------------------------------------------
# Storage of the spawn locations
# YAML -> in this very config.yml (default)
# SQLITE -> local database at plugins/AdvancedSpawn/spawns.db
# MYSQL -> external MySQL/MariaDB server
# The SQLite and MySQL drivers are already bundled with Spigot/Paper.
#
# Performance: locations are ALWAYS kept in memory. The database is
# only used when loading, saving or deleting (asynchronously), never
# during events or teleports.
#
# When switching to SQLITE/MYSQL, the spawns in this config.yml are
# automatically migrated to the database on first run.
# ------------------------------------------------------------
storage:
type: "YAML"
sqlite:
file: "spawns.db"
mysql:
host: "localhost"
port: 3306
database: "minecraft"
username: "user"
password: "secret"
table-prefix: "advancedspawn_"
use-ssl: false
# ------------------------------------------------------------
# Per-world spawns (optional)
# With enabled: true, each world can have its own spawn:
# /setspawn world -> sets the current world's spawn
# /delspawn world [name] -> removes it
# /spawn, /aspawn tp[all], the void rescue and the death respawn
# will use the spawn of the world the player is in.
#
# fallback: what to do when the world has NO spawn of its own:
# GLOBAL -> use the main spawn (default)
# DENY -> do not teleport and warn the player
# The first spawn for new players is always global.
# ------------------------------------------------------------
per-world:
enabled: false
fallback: "GLOBAL"
# ------------------------------------------------------------
# /lobby command (optional, multi-server) - alias: /hub
# SERVER -> sends the player to another server of your
# BungeeCord/Velocity network via plugin messaging.
# "server-name" must match the name registered in your
# proxy config (BungeeCord config.yml / velocity.toml).
# On Velocity, bungee-plugin-message-channel must be
# enabled (it is by default).
# SPAWN -> /lobby behaves exactly like /spawn on this server
# (useful on single-server setups).
# use-teleport-delay: apply the /spawn countdown (cancelled by
# moving or taking damage) before switching servers in SERVER mode.
# Note: SERVER mode only works behind a proxy; without one the
# connect request is ignored.
# ------------------------------------------------------------
lobby:
enabled: false
mode: "SERVER"
server-name: "lobby"
use-teleport-delay: false
# ------------------------------------------------------------
# How teleport messages are displayed to players
# CHAT -> chat messages only (default)
# TITLE -> on-screen titles only
# BOTH -> chat message and title
# Applies to the teleport flow messages: teleporting, teleported,
# cancellations, cooldown and void rescue. Other messages (admin
# feedback, help, welcome) always use chat.
# Tip: put "\n" inside a message to split it into title (first line)
# and subtitle (second line).
# Titles need 1.8.7+ and also work for Bedrock players via Geyser.
# ------------------------------------------------------------
titles:
mode: "CHAT"
fade-in-ticks: 5
stay-ticks: 40
fade-out-ticks: 10
# Main spawn (YAML mode only; filled in by /setspawn)
spawn:
world: ""
x: 0.0
y: 64.0
z: 0.0
yaw: 0.0
pitch: 0.0
# First spawn: where NEW players appear (/setfirstspawn).
# If not set, new players use the main spawn.
firstspawn:
world: ""
x: 0.0
y: 64.0
z: 0.0
yaw: 0.0
pitch: 0.0
teleport:
# Seconds to wait before teleporting with /spawn (0 = instant)
delay-seconds: 3
# Show the countdown every second
countdown-messages: true
# Cancel the teleport if the player moves to another block
cancel-on-move: true
# Cancel the teleport if the player takes damage
cancel-on-damage: true
# Cooldown in seconds between /spawn uses (0 = no cooldown)
cooldown-seconds: 0
# Sound played on arrival ("none" to disable).
# Names are adapted automatically across versions.
# List: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
sound: "ENTITY_ENDERMAN_TELEPORT"
sound-volume: 1.0
sound-pitch: 1.0
# Particles shown on arrival ("none" to disable)
particles: "PORTAL"
particle-count: 40
# Seconds of fall-damage protection after being teleported
no-fall-damage-seconds: 2
join:
# Teleport to the FIRST spawn only the first time a player joins
teleport-first-join: true
# Teleport to the spawn EVERY time a player joins the server
teleport-always: false
# Private message for the new player ("" to disable)
first-join-message: "&eWelcome to the server, &6{player}&e!"
# Server-wide announcement when a new player joins ("" to disable)
first-join-broadcast: "&d{player} &7joined the server for the first time. Say hi!"
respawn:
# Respawn at the spawn after dying
teleport-to-spawn: true
# Respect the player's bed / respawn anchor if they have one
respect-bed-spawn: true
void:
# Teleport to the spawn when falling into the void
enabled: true
# Blocks below the world's lower limit before it triggers.
# The limit is detected automatically: y=0 on 1.8-1.17, y=-64 on 1.18+
trigger-below: 4
messages:
no-permission: "&cYou don't have permission to do this."
players-only: "&cThis command can only be used by a player in-game."
spawn-not-set: "&cThe spawn is not set yet. An admin must use &f/setspawn&c."
firstspawn-not-set: "&cThe first spawn is not set yet. Use &f/setfirstspawn&c."
spawn-set: "&aSpawn set in &f{world} &7({x}, {y}, {z})"
firstspawn-set: "&aFirst spawn set in &f{world} &7({x}, {y}, {z})"
teleporting: "&7Teleporting in &b{seconds}s&7... Don't move!"
teleported: "&aYou have arrived at the spawn."
teleported-firstspawn: "&aYou have arrived at the first spawn."
teleport-cancelled-move: "&cTeleport cancelled: you moved."
teleport-cancelled-damage: "&cTeleport cancelled: you took damage."
already-teleporting: "&cYou already have a teleport in progress."
cooldown: "&cWait &f{seconds}s &cbefore using /spawn again."
teleported-other: "&aYou sent &f{player} &ato the spawn."
teleported-by-other: "&aYou were sent to the spawn by &f{player}&a."
tpall-success: "&aYou sent &f{count} &aplayer(s) to the spawn."
player-not-found: "&cPlayer &f{player} &cnot found."
void-teleport: "&7You fell into the void... Returning to spawn."
reloaded: "&aConfiguration reloaded successfully."
spawn-deleted: "&aMain spawn deleted."
firstspawn-deleted: "&aFirst spawn deleted."
nothing-to-delete: "&cThere is nothing to delete."
delspawn-specify: "&cSeveral locations are stored. Use &f/delspawn <spawn|firstspawn|world|all>&c."
world-spawn-set: "&aSpawn for world &f{world} &aset &7({x}, {y}, {z})"
world-spawn-deleted: "&aSpawn for world &f{world} &adeleted."
world-spawns-deleted: "&aDeleted the spawns of &f{count} &aworld(s)."
world-spawn-not-set: "&cWorld &f{world} &chas no spawn of its own."
per-world-disabled-hint: "&7Note: per-world mode is disabled (per-world.enabled in config.yml)."
lobby-sending: "&7Sending you to the lobby server..."
lobby-not-configured: "&cThe lobby server is not configured (lobby.server-name in config.yml)."
lobby-disabled: "&cThe /lobby command is disabled on this server."
help:
- "&8&m----------------------------------------"
- " &b&lAdvancedSpawn &7- Commands:"
- " &c/spawn &7- Go to the spawn."
- " &c/lobby &7- Go to the lobby (network server or spawn)."
- " &c/spawn <player> &7- Send a player to the spawn."
- " &c/setspawn &7- Set the spawn here."
- " &c/firstspawn &7- Go to the first spawn."
- " &c/setfirstspawn &7- Set the first spawn (new players)."
- " &c/setspawn world &7- Set the current world's own spawn (per-world)."
- " &c/delspawn [spawn|firstspawn|world|all] &7- Delete stored spawns."
- " &c/aspawn tp <player> &7- Send a player to the spawn."
- " &c/aspawn tpall &7- Send everyone to the spawn."
- " &c/aspawn reload &7- Reload the configuration."
- "&8&m----------------------------------------"
[❖] Working on:
- Fixing daily issues in the comment sections!
( ͡~ ͜ʖ ͡°) Report any issues that you have in the comments section!