功能:
- 添加 /back 命令,将玩家传送至其上次死亡的位置。
- 添加 /back [player_name] 命令,将指定玩家传送至其上次死亡的位置。
- 向死亡的玩家发送包含其坐标的消息。
- 当有玩家死亡时,向所有玩家发送包含该玩家坐标的消息。
- 在设定的时间后自动传送至上次死亡的位置(默认关闭)。可通过 /canceltp 取消传送。
所有功能均可通过 config.yml 文件进行自定义配置。
命令:
- /back:传送至上一次死亡的位置。
- /back [玩家名称]: 将选定的玩家传送至其上次死亡的位置。
- /deathteleport: 启用或禁用该插件。
- /autotp:启用或禁用死亡后的自动传送。等同于在配置文件中编辑 doAutoTeleportToDeathLocation 属性。无需重新加载该插件。
- /autotp [delay]:更改自动传送至上次死亡位置前的延迟时间。相当于在配置文件中修改 autoTeleportToDeathLocationDelay 属性。无需重新加载插件。
- /canceltp:取消自动传送
- /deathchest [x] [y] [z]:在指定坐标生成一个箱子,其中包含玩家死亡时的所有物品。
- /autochest:在死亡地点自动生成一个包含玩家所有物品的箱子。
权限:
- usebackcommand:拥有此权限的玩家可运行 /back 命令。
- usebackcommandforothers:拥有此权限的玩家可运行 /back [player_name] 命令。
配置:
所有配置选项均位于 config.yml 文件中。示例:hasToBeOperator: true
- hasToBeOperator:如果为 true,则只有服务器管理员才能使用该插件的命令。
- allowToTeleportOtherPlayers:如果为 true,则拥有相应权限的所有玩家均可使用 /back [player_name] 命令。
doSendCordsToPlayer:如果为 true,则在玩家死亡后向其发送死亡坐标。
doSendCordsToAllPlayers:如果为 true,则在玩家死亡后,其死亡坐标及显示名称将广播至整个服务器。
doAutoTeleportToDeathLocation:如果为 true,则在经过 autoTeleportToDeathLocationDelay 设置的延迟后,玩家将自动传送至其上次死亡的地点。
autoTeleportToDeathLocationDelay:接受数值。设置当 doAutoTeleportToDeathLocation 为 true 时,玩家被传送至上次死亡位置前的延迟时间。
disableUseBackCommandPermission:如果为 true,则运行 /back 命令无需 usebackcommand 权限。
disableUseBackCommandForOthersPermission:如果为 true,则运行 /back [player_name] 命令时不需要 usebackcommandforothers 权限。
disableAllPermissions:如果为 true,则运行插件的命令不需要任何权限。
任何建议都将不胜感激。
Features:
- Adds a /back command which teleports the user to their last death location.
- Adds a /back [player_name] command that teleports the user specified at their last death location.
- Sends a message to a player that dies with their coordinates.
- Sends a message to all players when a player dies with their coordinates.
- Auto teleportation to last death location (OFF by default) after a selected amount of time. Can be cancelled by /canceltp.
Every feature can be customised through the config.yml file.
Commands:
- /back: teleports to last death location.
- /back [player_name]: teleports the selected player to their last death location.
- /deathteleport: enables or disables the plugin.
- /autotp: enables or disables the auto teleportation after death. Equivalent to editing the doAutoTeleportToDeathLocation property in the config file. Does not require reloading the plugin.
- /autotp [delay]: changes the delay before auto-teleporting to last death location. Equivalent to editing the autoTeleportToDeathLocationDelay property in the config file. Does not require reloading the plugin.
- /canceltp: cancels automatic teleportation
- /deathchest [x] [y] [z]: spawns a chest with all the items of the player at the time of death.
- /autochest: automatically spawns a chest with all the items of the player at the location of death.
Permissions:
- usebackcommand: Players with this permission can run the /back command.
- usebackcommandforothers: Players with this permission can run the /back [player_name] command.
Configuration:
All configuration options are located in the config.yml file. Example: hasToBeOperator: true
- hasToBeOperator: If true only server operators can use the plugin's commands.
- allowToTeleportOtherPlayers: If true everyone with the appropriate permissions can use /back [player_name].
- doSendCordsToPlayer: If true the death coordinates are sent to the player after death.
- doSendCordsToAllPlayers: If true the death coordinates along with the player's display name are broadcasted to the whole server after a player's death.
- doAutoTeleportToDeathLocation: If true the player is automatically teleported after the delay set in autoTeleportToDeathLocationDelay to their last death location.
- autoTeleportToDeathLocationDelay: TAKES A NUMERICAL VALUE. Sets after how much time the player will be teleported to their last death location, if doAutoTeleportToDeathLocation is true.
- disableUseBackCommandPermission: If true, permission usebackcommand is not required to run the /back command.
- disableUseBackCommandForOthersPermission: If true, permission usebackcommandforothers is not required to run the /back [player_name] command.
- disableAllPermissions: If true, no permissions are required to run the plugin's commands.
Any suggestions would be greatly appreciated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧