Advanced Set Spawn
[★] 功能:
- 加入时传送至出生点 (true/false)
- 死亡时传送至出生点 (true/false)
- 启用 /setfirstspawn 命令 (true/false)
- 启用 /setspawn 命令 (true/false)
- 拥有权限时无需冷却时间 (true/false)
- 自定义消息
- 传送至出生点时播放音效。
- 将所有玩家传送至出生点
- 玩家掉入虚空时将其传送至出生点 [v2.1]
- 检查玩家是否更改了位置(true/false)[v2.4]
- 现在你可以隐藏任何消息![v2.5]
- 支持最高 MC 1.26.2
- 按世界独立设置重生点!
- MySQL& SQLite 集成。
- 返回你上一次死亡的地点。
- 首次加入计数器和欢迎消息
- 适用于 Bungeecord 网络和拥有多个世界的单服务器的大厅命令。
- 多语言支持(西班牙语、俄语、法语和英语)
- 在特定区域使用 RandomTP(WorldGuard 集成),以及 RandomTPall
[⌨] 命令:
commands:
spawn:
description: 传送至服务器出生点
usage: /spawn [player]
setspawn:
description: 将服务器出生点设置为你所在的位置
用法:/setspawn [world]
firstspawn:
描述:前往初始出生点(新玩家出现的位置)
用法:/firstspawn
setfirstspawn:
description: 将第一个出生点(新玩家)设置在你所在的位置
usage: /setfirstspawn
lobby:
description: 前往大厅(代理网络服务器或本服务器的出生点)
usage: /lobby
aliases: [hub]
setlobby:
description: 在本服务器上设置大厅位置(无需代理)
usage: /setlobby
back:
description: 返回你上次死亡的位置
usage: /back
aliases: [return]
delspawn:
description: 删除已存储的出生点、首个出生点或按世界划分的出生点
usage: /delspawn [spawn|firstspawn|lobby|world|all] [world]
aliases: [removespawn]
advancedspawn:
description: AdvancedSpawn 管理命令
usage: /aspawn [help|reload|tp|tpall|del|setworldspawn|setlobby|spawn|firstspawn|setspawn|setfirstspawn]
aliases: [aspawn, asetspawn]
你也可以使用 /advancedspawn 和 /asetspawn 来代替 /aspawn
[♚] 权限:
permissions:
advancedspawn.*:
description: 拥有 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.back: true
advancedspawn.setlobby: true
advancedspawn.bypass.firstspawn: true
advancedspawn.firstspawn: true
advancedspawn.admin: true
advancedspawn.bypass.delay: true
advancedspawn.bypass.cooldown: true
advancedspawn.spawn:
description: 使用 /spawn 命令
default: true
advancedspawn.lobby:
description: 使用 /lobby 命令
default: true
advancedspawn.back:
description: 使用 /back 命令返回你上次死亡的位置
default: true
advancedspawn.setlobby:
description: 使用 /setlobby 命令设置大厅位置
default: op
advancedspawn.spawn.others:
description: 将其他玩家传送到出生点 (/spawn <player> 或 /aspawn tp)
default: op
advancedspawn.tpall:
description: 将所有玩家传送到出生点 (/aspawn tpall)
default: op
advancedspawn.setspawn:
description: 使用 /setspawn 命令(包括 /setspawn world)
default: op
advancedspawn.setfirstspawn:
description: 使用 /setfirstspawn 命令
default: op
advancedspawn.delspawn:
description: 使用 /delspawn 删除已存储的出生点
default: op
advancedspawn.firstspawn:
description: 使用 /firstspawn
default: op
advancedspawn.admin:
description: 使用 /aspawn help 和 /aspawn reload
default: op
advancedspawn.bypass.delay:
description: 跳过传送延迟
default: op
advancedspawn.bypass.cooldown:
description: 跳过 /spawn 重复使用的冷却时间
default: op
advancedspawn.bypass.firstspawn:
description: 首次加入时不会被传送到第一个出生点
default: false
advancedspawn.bypass.tpall:
description: 不受 /aspawn tpall 影响
default: false
[✎] Config. (v3.6):
# ============================================================
# AdvancedSpawn - 配置文件
# 兼容 Spigot/Paper 1.8.8 -> 1.21+
# 基岩版玩家:通过 GeyserMC + Floodgate 支持
#
# * 所有文本位于 lang/ 文件夹中(每种语言一个文件)
# * 颜色代码 &(如 &a)和十六进制 &#RRGGBB(1.16+)
# ============================================================
------------------------------------------------------------
语言设置
所有文本位于 plugins/AdvancedSpawn/lang/<code>.yml。
内置文件:en, es, ru, fr。复制其中一个并重命名以添加
你自己的语言(例如 de.yml, pt_br.yml)- 重载时会自动加载。
你的编辑永远不会被插件更新覆盖。
任何消息都可以使用 {firstjoins}:历史上曾加入过的唯一玩家数量
(存储在 data.yml 中)。
default: 控制台使用的语言以及作为默认回退语言。
per-player: 根据每位玩家的 Minecraft
客户端语言发送对应的文件("es_es" 会先尝试 es_es.yml,然后是 es.yml)。
基岩版玩家通过 Geyser 报告其区域设置。
设置为 false 则对所有人使用 "default"。
------------------------------------------------------------
language:
default: "en"
per-player: true
------------------------------------------------------------
出生点位置存储
YAML -> 在此 config.yml 中(默认)
SQLITE -> 位于 plugins/AdvancedSpawn/spawns.db 的本地数据库
MYSQL -> 外部 MySQL/MariaDB 服务器
SQLite 和 MySQL 驱动已捆绑在 Spigot/Paper 中。
性能:位置始终保留在内存中。数据库仅在加载、保存或删除时(异步)使用,
绝不会在事件或传送期间使用。
当切换到 SQLITE/MYSQL 时,此 config.yml 中的出生点会在首次运行时
自动迁移到数据库中。
------------------------------------------------------------
storage:
type: "YAML"
sqlite:
file: "spawns.db"
mysql:
host: "localhost"
port: 3306
database: "minecraft"
username: "user"
password: "secret"
table-prefix: "advancedspawn_"
use-ssl: false
------------------------------------------------------------
按世界设置的出生点(可选)
启用 enabled: true 后,每个世界都可以拥有自己的出生点:
/setspawn world -> 设置当前世界的出生点
/delspawn world [name] -> 移除它
/spawn、/aspawn tp[all]、虚空救援和死亡重生
将使用玩家所在世界的出生点。
fallback: 当世界没有专属出生点时的处理方式:
GLOBAL -> 使用主出生点(默认)
DENY -> 不执行传送并警告玩家
新玩家的首个出生点始终是全局的。
------------------------------------------------------------
per-world:
enabled: false
fallback: "GLOBAL"
------------------------------------------------------------
/back 命令(别名:/return)
将玩家传送回其上次死亡的位置。
虚空中的死亡会被忽略(返回那里会导致玩家再次死亡)。位置保存在内存中,
并在服务器重启时清除。
use-teleport-delay: 在返回前应用 /spawn 倒计时(移动或受到伤害会取消倒计时)。
single-use: 使用一次 /back 后忘记该位置。
clear-on-quit: 玩家断开连接时忘记该位置。
cooldown-seconds: 两次使用 /back 之间的等待时间(0 = 无冷却)。
注意:EssentialsX 也注册了 /back。如果同时安装了这两个插件,请使用 /advancedspawn:back
或在服务器的 commands.yml 中设置别名以确定哪个优先。
------------------------------------------------------------
back:
enabled: true
use-teleport-delay: true
single-use: false
clear-on-quit: false
cooldown-seconds: 0
------------------------------------------------------------
/lobby 命令(可选,多服务器环境) - 别名:/hub
SERVER -> 通过插件消息通道将玩家发送到你的
BungeeCord/Velocity 网络中的另一台服务器。
"server-name" 必须与你在代理配置中注册的名称匹配
(BungeeCord config.yml / velocity.toml)。
在 Velocity 上,必须启用 bungee-plugin-message-channel
(默认情况下已启用)。
LOCATION -> 传送到本服务器上的大厅点,
在游戏中使用 /setlobby 设置。适用于没有
BungeeCord/Velocity 网络的服务器。
SPAWN -> /lobby 在本服务器上完全等同于 /spawn。
use-teleport-delay: 在切换服务器/传送前应用 /spawn 倒计时(移动或受到伤害会取消倒计时)。
注意:SERVER 模式仅在代理后面有效;如果没有代理,
连接请求将被忽略 - 请改用 LOCATION。
"server-name" 仅由 SERVER 模式使用。
------------------------------------------------------------
lobby:
enabled: false
mode: "SERVER"
server-name: "lobby"
use-teleport-delay: false
------------------------------------------------------------
传送消息如何向玩家显示
CHAT -> 仅聊天消息(默认)
TITLE -> 仅屏幕标题
BOTH -> 聊天消息和标题
适用于传送流程中的消息:正在传送、已传送、
取消、冷却时间和虚空救援。其他消息(管理员反馈、帮助、欢迎)始终使用聊天。
提示:在消息内放置 "\n" 可将其拆分为标题(第一行)
和副标题(第二行)。
标题需要 1.8.7+ 版本,并且也适用于通过 Geyser 的基岩版玩家。
------------------------------------------------------------
titles:
mode: "CHAT"
fade-in-ticks: 5
stay-ticks: 40
fade-out-ticks: 10
------------------------------------------------------------
位置存储在哪里?
出生点、首次出生点、大厅和各世界出生点存储在
spawns.yml(YAML 模式)或数据库中(SQLITE/MYSQL)。
它们不在此文件中:设置和玩家数据保持
分离,因此重置其中一个不会影响另一个。
在游戏中使用 /setspawn、/setfirstspawn、
/setspawn world 和 /setlobby 进行设置。
------------------------------------------------------------
teleport:
使用 /spawn 前等待的秒数(0 = 即时)
delay-seconds: 3
每秒显示倒计时
countdown-messages: true
如果玩家移动到另一个方块则取消传送
cancel-on-move: true
如果玩家受到伤害则取消传送
cancel-on-damage: true
使用 /spawn 之间的冷却时间(秒)(0 = 无冷却)
cooldown-seconds: 0
到达时播放的声音("none" 以禁用)。
名称会跨版本自动适配。
列表:https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
sound: "ENTITY_ENDERMAN_TELEPORT"
sound-volume: 1.0
sound-pitch: 1.0
到达时显示的粒子效果("none" 以禁用)
particles: "PORTAL"
particle-count: 40
被传送后免受摔落伤害的秒数
no-fall-damage-seconds: 2
join:
仅在玩家第一次加入服务器时传送到第一个出生点
teleport-first-join: true
每次玩家加入服务器时都传送到出生点
teleport-always: false
向新玩家发送私人欢迎消息
(文本:"first-join-message" 位于语言文件中)
send-first-join-message: true
向所有人广播新玩家加入的消息,每人使用各自的语言
(文本:"first-join-broadcast" 位于语言文件中)
send-first-join-broadcast: true
用你自己的消息广播每一次加入,每位玩家使用各自的语言
(文本:"join-broadcast" 位于语言文件中)。
跳过玩家的第一次加入,以免欢迎消息重复。
send-join-broadcast: false
隐藏原版黄色的 "X joined the game" 行。
当使用 send-join-broadcast 替换它时开启此项。
hide-default-join-message: false
respawn:
死亡后在出生点重生
teleport-to-spawn: true
如果玩家有床或重生锚,则尊重其床/重生锚的位置
respect-bed-spawn: true
void:
掉入虚空时传送到出生点
enabled: true
触发前低于世界下限的方块数。
下限会自动检测:1.8-1.17 为 y=0,1.18+ 为 y=-64
trigger-below: 4
# ============================================================
# AdvancedSpawn - 英文 (en)
# 任何设置为 "" 的消息将被隐藏(永不发送)。
# 颜色:所有地方使用 & 代码,1.16+ 支持十六进制 &#RRGGBB。
# 在 TITLE 模式下,消息内使用 \n 可拆分标题/副标题。
# ============================================================
prefix: "&8[&bSpawn&8] &7"
no-permission: "&c你没有权限执行此操作。"
players-only: "&c此命令只能由游戏中的玩家使用。"
spawn-not-set: "&c出生点尚未设置。管理员必须使用 &f/setspawn&c。"
firstspawn-not-set: "&c首次出生点尚未设置。请使用 &f/setfirstspawn&c。"
spawn-set: "&a已在 &f{world} &7({x}, {y}, {z}) 设置出生点"
firstspawn-set: "&a已在 &f{world} &7({x}, {y}, {z}) 设置首次出生点"
teleporting: "&7将在 &b{seconds}s&7 后传送... 请勿移动!"
teleported: "&a你已到达出生点。"
teleported-firstspawn: "&a你已到达首次出生点。"
teleport-cancelled-move: "&c传送已取消:你移动了。"
teleport-cancelled-damage: "&c传送已取消:你受到了伤害。"
already-teleporting: "&c你已经在进行传送。"
cooldown: "&c请等待 &f{seconds}s &c后再使用 /spawn。"
teleported-other: "&a你将 &f{player} &a传送到了出生点。"
teleported-by-other: "&a你被 &f{player}&a传送到了出生点。"
tpall-success: "&a你将 &f{count} &a名玩家传送到了出生点。"
player-not-found: "&c未找到玩家 &f{player} &c。"
void-teleport: "&7你掉入了虚空... 返回出生点。"
reloaded: "&a配置已成功重新加载。"
spawn-deleted: "&a主出生点已删除。"
firstspawn-deleted: "&a首次出生点已删除。"
nothing-to-delete: "&c没有可删除的内容。"
delspawn-specify: "&c存储了多个位置。请使用 &f/delspawn <spawn|firstspawn|world|all>&c。"
world-spawn-set: "&a已为世界 &f{world} &a设置出生点 &7({x}, {y}, {z})"
world-spawn-deleted: "&a已删除世界 &f{world} &a的出生点。"
world-spawns-deleted: "&a已删除 &f{count} &a个世界的出生点。"
world-spawn-not-set: "&c世界 &f{world} &c没有自己的专属出生点。"
per-world-disabled-hint: "&7注意:按世界模式已禁用(config.yml 中的 per-world.enabled)。"
lobby-sending: "&7正在将你传送至大厅服务器..."
lobby-not-configured: "&c大厅服务器未配置(config.yml 中的 lobby.server-name)。"
lobby-disabled: "&c此服务器上已禁用 /lobby 命令。"
back-disabled: "&c此服务器上已禁用 /back 命令。"
back-none: "&c尚未存储死亡位置。"
back-returned: "&a已返回至上一次死亡位置。"
back-world-unloaded: "&c你上次死亡的所在世界尚未加载。"
back-cooldown: "&c请等待 &f{seconds}s &c后再使用 /back。"
first-join-message: "&e欢迎来到服务器,&6{player}&e!"
first-join-broadcast: "&d{player} &7首次加入服务器。 &e#{firstjoins}"
help:
- "&8&m----------------------------------------"
- " &b&lAdvancedSpawn &7- 命令:"
- " &c/spawn &7- 前往出生点。"
- " &c/lobby &7- 前往大厅(网络服务器或出生点)。"
- " &c/back &7- 返回至上一次死亡位置。"
- " &c/spawn <玩家> &7- 将玩家传送至出生点。"
- " &c/setspawn &7- 在此处设置出生点。"
- " &c/firstspawn &7- 前往初始出生点。"
- " &c/setfirstspawn &7- 设置初始出生点(针对新玩家)。"
- " &c/setspawn world &7- 设置当前世界的独立出生点(按世界设置)。"
- " &c/delspawn [spawn|firstspawn|world|all] &7- 删除已存储的出生点。"
- " &c/aspawn tp <玩家> &7- 将玩家传送至出生点。"
- " &c/aspawn tpall &7- 将所有玩家传送至出生点。"
- " &c/aspawn reload &7- 重新加载配置文件。"
- "&8&m----------------------------------------"
[♫] 音效列表:
[❖] 注意事项:
- V3+ 版本的权限从 advancedsetspawn.* 更改为 advancedspawn.*
( ͡~ ͜ʖ ͡°) 如有任何问题,请在评论区反馈!
Advanced Set Spawn
[★] Features:
- Spawn onJoin (true/false)
- Spawn onDeath (true/false)
- Enable Command SetFirstSpawn (true/false)
- Enable Command SetSpawn (true/false)
- Disable Cooldown Has Permission (true/false)
- Customizable Messages
- PlaySound on Teleport to the Spawn Point.
- Teleport all players to the Spawn Point
- Teleport players to the Spawn Point on falling in to the void [v2.1]
- Check if player has changed its location (true/false) [v2.4]
- Now you can hide any message! [v2.5]
- Support up to MC 1.26.2
- Per-World spawn!
- MySQL & SQLite integration.
- Back to your previous last death spot.
- First Join Counter and Welcome Message
- Lobby command for a Bungeecord Network and a Single Server with multiple Worlds.
- Multilang. Support (Spanish, Russian, French & English)
- RandomTP in certain region (WorldGuard Integration) also RandomTPall
[⌨] Commands:
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]
setlobby:
description: Set the lobby location on this server (no proxy needed)
usage: /setlobby
back:
description: Return to your last death location
usage: /back
aliases: [return]
delspawn:
description: Delete the stored spawn, first spawn or per-world spawns
usage: /delspawn [spawn|firstspawn|lobby|world|all] [world]
aliases: [removespawn]
advancedspawn:
description: AdvancedSpawn admin commands
usage: /aspawn [help|reload|tp|tpall|del|setworldspawn|setlobby|spawn|firstspawn|setspawn|setfirstspawn]
aliases: [aspawn, asetspawn]
You can also use /advancedspawn & /asetspawn instead /aspawn
[♚] Permissions:
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.back: true
advancedspawn.setlobby: true
advancedspawn.bypass.firstspawn: 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.back:
description: Use /back to return to your last death location
default: true
advancedspawn.setlobby:
description: Use /setlobby to set the lobby location
default: op
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.firstspawn:
description: Not teleported to the first spawn on first join
default: false
advancedspawn.bypass.tpall:
description: Not affected by /aspawn tpall
default: false
[✎] Config. (v3.6):
# ============================================================
# AdvancedSpawn - Configuration
# Compatible with Spigot/Paper 1.8.8 -> 1.21+
# Bedrock players: supported via GeyserMC + Floodgate
#
# * All texts live in the lang/ folder (one file per language)
# * Colors with & (e.g. &a) and hex &#RRGGBB (1.16+)
# ============================================================
------------------------------------------------------------
Languages
All texts live in plugins/AdvancedSpawn/lang/<code>.yml.
Bundled files: en, es, ru, fr. Copy one and rename it to add
your own (e.g. de.yml, pt_br.yml) - it is picked up on reload.
Your edits are never overwritten by plugin updates.
Any message can use {firstjoins}: the number of unique players
who have ever joined (stored in data.yml).
default: language used for the console and as a fallback.
per-player: send each player the file matching their Minecraft
client language ("es_es" tries es_es.yml, then es.yml).
Bedrock players report their locale through Geyser.
Set to false to use "default" for everyone.
------------------------------------------------------------
language:
default: "en"
per-player: true
------------------------------------------------------------
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"
------------------------------------------------------------
/back command (alias: /return)
Returns the player to the location of their last death.
Deaths in the void are ignored (returning there would kill the
player again). Locations are kept in memory and cleared on
server restart.
use-teleport-delay: apply the /spawn countdown (cancelled by
moving or taking damage) before returning.
single-use: forget the location after using /back once.
clear-on-quit: forget the location when the player disconnects.
cooldown-seconds: wait time between /back uses (0 = none).
NOTE: EssentialsX also registers /back. If both plugins are
installed, use /advancedspawn:back or set an alias in the
server's commands.yml to choose which one wins.
------------------------------------------------------------
back:
enabled: true
use-teleport-delay: true
single-use: false
clear-on-quit: false
cooldown-seconds: 0
------------------------------------------------------------
/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).
LOCATION -> teleports to a lobby point on THIS server, set
in-game with /setlobby. For servers without a
BungeeCord/Velocity network.
SPAWN -> /lobby behaves exactly like /spawn on this server.
use-teleport-delay: apply the /spawn countdown (cancelled by
moving or taking damage) before switching servers / teleporting.
Note: SERVER mode only works behind a proxy; without one the
connect request is ignored - use LOCATION instead.
"server-name" is only used by SERVER mode.
------------------------------------------------------------
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
------------------------------------------------------------
Where are the locations stored?
Spawn, first spawn, lobby and per-world spawns live in
spawns.yml (YAML mode) or in the database (SQLITE/MYSQL).
They are NOT in this file: settings and player data stay
separate, so resetting one never touches the other.
Set them in-game with /setspawn, /setfirstspawn,
/setspawn world and /setlobby.
------------------------------------------------------------
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:
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
Send the private welcome message to the new player
(text: "first-join-message" in the lang files)
send-first-join-message: true
Announce the new player to everyone, each in their own language
(text: "first-join-broadcast" in the lang files)
send-first-join-broadcast: true
Announce EVERY join with your own message, each player in their
own language (text: "join-broadcast" in the lang files).
Skipped on a player's first join so the welcome is not doubled.
send-join-broadcast: false
Hide the vanilla yellow "X joined the game" line.
Turn this on when using send-join-broadcast to replace it.
hide-default-join-message: false
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
# ============================================================
# AdvancedSpawn - English (en)
# Any message set to "" is HIDDEN (never sent).
# Colors: & codes everywhere, hex &#RRGGBB on 1.16+.
# Use \n inside a message to split title / subtitle in TITLE mode.
# ============================================================
prefix: "&8[&bSpawn&8] &7"
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."
back-disabled: "&cThe /back command is disabled on this server."
back-none: "&cNo death location stored yet."
back-returned: "&aReturned to your last death location."
back-world-unloaded: "&cThe world of your last death is not loaded."
back-cooldown: "&cWait &f{seconds}s &cbefore using /back again."
first-join-message: "&eWelcome to the server, &6{player}&e!"
first-join-broadcast: "&d{player} &7joined the server for the first time. &e#{firstjoins}"
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/back &7- Return to your last death location."
- " &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----------------------------------------"
[♫] Sound List:
[❖] Take in Mind:
- Permissions on V3+ changed from advancedsetspawn.* to advancedspawn.*
( ͡~ ͜ʖ ͡°) Report any issues that you have in the comments section!
评论 0
登录后参与评分
还没有评论,来抢沙发吧