SpawnFix:
此插件用于覆盖其他会干扰玩家默认出生点/登录行为的插件。
要设置默认出生点位置,您可以手动编辑配置文件(参见 default),或者在游戏中前往目标位置并运行 /sf setSpawn 命令。该命令会将您当前所在世界的坐标设置为默认出生点,同时也会复制您面朝的方向。
首次加入时,玩家会被传送至 default 中设置的坐标处。对于随后的每次登录,玩家会被传送至上一次登录的位置。有关如何控制此行为的方法,请参见 login。
当玩家重生时,会被传送至默认的重生位置;如果未设置出生点,则会被传送至 default 指定的位置。有关如何控制此行为的方法,请参见 onSpawn。
该覆盖机制通过反复将玩家传送至其登录/重生位置来实现。您可以通过 teleport 中的设置来控制传送行为。
如果您希望我对本插件进行修改或将其移植到其他版本,请在 GitHub 上提交 issue,或在 Discord 上发送好友请求给我。
支持 Spigot 核心服务器,版本范围 1.17 - 1.20.2(截至撰写本文时)。
命令指南:
- setSpawn - 将出生点覆盖位置设置为您当前的位置。
- tp - 将玩家传送至 SpawnFix 的默认出生点位置。
- reload - 强制 SpawnFix 重新扫描配置文件以检测任何更改。
- help - 显示游戏中每个命令的功能列表。
配置指南:
default:
- worldName (世界名称) - 根据世界文件夹的名称确定哪个世界是玩家的默认出生点世界。例如,要将主世界设为默认出生点,请将其设置为 "world"(这是 Spigot 的主世界默认名称。请检查 server.properties 文件以确认您的世界名称)。如果要使用下界,请使用 "world_nether"。
- x (任意小数) - 期望的默认出生点位置的 X 坐标。
- y (任意小数) - 期望的默认出生点位置的 Y 坐标。
- z (任意小数) - 期望的默认出生点位置的 Z 坐标。
- yaw (任意小数) - 期望的默认出生点位置的偏航角。
- pitch (任意小数) - 期望的默认出生点位置的俯仰角。
teleport:
- times (任意整数) - 将玩家传送至上一次登录/重生位置的次数。
- retryInterval (任意整数) - 每次传送之间等待的刻数。
login:
- "every" - 玩家在每次登录时都会被强制传送至上一次登录的位置。
- "first" - 玩家仅在重载或重启后的首次加入时被强制传送至上一次登录的位置。
- "never" - 玩家永远不会被强制传送至上一次登录的位置。
onSpawn:
- "every" - 玩家在每次重生时都会被强制传送至出生点位置。
- "never" - 玩家永远不会被强制传送至出生点位置。
SpawnFix:
This plugin is for overriding any other plugins that mess with the default spawn / login behaviour of players.
To set the default spawn location you can either edit the config file manually see default, or go to the desired position in game & run "/sf setSpawn", which will set the default spawn to the location you're standing at, in the world you're standing in. This will also copy the direction that you are looking in.
On the first ever join a player is teleported to the cords set in default. For every other login the player is teleported to their last login location. See login for ways to control this behaviour.
For respawning a player is teleported to their default respawn location, or if no spawn is set they are teleported to the default location. See onSpawn for ways to control this behaviour.
The overriding works by repeatedly teleporting a player to their login / respawn location. The settings in teleport can be used to control the teleportation.
If you want me to make a change to this plugin or to port it to another version, either open an issue on GitHub or send me a friend request on discord.
Supports spigot based servers from 1.17 - 1.20.2 (at time of writing).
Command Guide:
- setSpawn - Sets the spawn-override position to your current location.
- tp - Teleports the player to the default spawn location for SpawnFix.
- reload - Forces SpawnFix to rescan the config files for any changes.
- help - Shows list of what each command does whilst in the game.
Config guide:
default:
- worldName (name of world) - This determines which world is the default spawn one for the player from the name of the world folder. For example, to have the over-world as the default spawn set this to "world" (This is the default over-world name for spigot. Check server.properties for your world name.). Or if you wanted it to be the nether use "world_nether".
- x (any decimal number) - The x pos of the default spawn location desired.
- y (any decimal number) - The y pos of the default spawn location desired.
- z (any decimal number) - The z pos of the default spawn location desired.
- yaw (any decimal number) - The yaw of the default spawn location desired.
- pitch (any decimal number) - The pitch of the default spawn location desired.
teleport:
- times (any whole number) - The amount of times to teleport the player to their last login / respawn location.
- retryInterval (any whole number) - How many ticks to wait between each teleport of the player.
login:
- "every" - The player will get force-teleported to their last login location on every login.
- "first" - The player will get force-teleported to their last login location only on the first join since a reload or restart.
- "never" - The player will never get force-teleported to their last login location.
onSpawn:
- "every" - The player will get force-teleported to their spawn location on every respawn.
- "never" - The player will never get force-teleported to their spawn location.
评论 0
登录后参与评分
还没有评论,来抢沙发吧