SimpleWarps

插件

· 作者 Losterixx

此插件允许你轻松创建和管理传送点。

0 本站下载 0 关注 更新于 5 个月前

最新 2.1 · 26.3 · Paper / Purpur

一键开服(送7天)

此插件可让你轻松创建和管理传送点。

功能

  • 创建、删除、列出并传送到传送点。
  • 在游戏中重载插件。
  • 在 messages.yml 中自定义消息。

命令

  • 使用 /setwarp <name> 创建传送点。
  • 使用 /listwarps 列出所有传送点。
  • 使用 /delwarp <name> 删除传送点。
  • 使用 /warp <name> 传送到指定传送点。
  • 使用 /simplewarps reload 重载插件。
  • 使用 /simplewarps about 获取有关插件的信息。

权限

  • simplewarps.admin.reload - 允许你使用 /simplewarps reload。
  • simplewarps.cmd.setwarp - 允许你使用 /setwarp <name>。
  • simplewarps.cmd.listwarps - 允许你使用 /listwarps
  • simplewarps.cmd.delwarp - 允许你使用 /delwarp <name>。
  • simplewarps.cmd.warp - 允许你使用 /warp <name>。
查看 config.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# The prefix before every message
prefix: "<#E7AE55><b>SimpleWarps</b> <dark_gray>⚡ <gray>"

# The messages file to use
langFile: 'english'

# The sound to play when a player teleports
warpSound:
  enabled: true
  sound: 'ENTITY_ENDERMAN_TELEPORT'
  volume: 1.0
  pitch: 1.0

# Permission-based warps configuration
# If enabled, players will only be able to teleport to warps they have permission for.
permissionBasedWarps:
  # Whether permission-based warps are enabled
  enabled: true
  # The permission node format. %warp% will be replaced with the warp name.
  permissionNodeFormat: 'simplewarps.warp.%warp%'

# Cooldown configuration
teleportCooldown:
  # Whether teleport cooldown is enabled
  enabled: true
  # The cooldown time in seconds
  cooldownTime: 5
查看 english.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# General messages
general:
  noPlayer: "<gray>You <red>must be a player<gray> to execute this command!"
  noPerms: "<gray>You <red>do not have permission<gray> to execute this command!"

# Command messages
commands:
  # Messages for the /simplewarps command (main plugin command)
  simplewarps:
    usage: "<gray>Please use <red>/simplewarps <about/reload><gray>!"
    about: "<gray>simplewarps v%version% <dark_gray>- <gray>%author%"
    reload:
      reloading: "<yellow>Reloading <gray>SimpleWarps..."
      reloaded: "<green>Successfully reloaded <gray>SimpleWarps! <dark_gray>(%time%ms)"
      error: "<gray>An <red>error occurred <gray>while reloading SimpleWarps! Check the console for details."
    help:
      - "%prefix% "
      - "%prefix% <white>Command help:"
      - "%prefix% "
      - "%prefix% <dark_gray>- <#DEC194> /simplewarps about <dark_gray>- <gray>View the plugin information"
      - "%prefix% <dark_gray>- <#DEC194> /simplewarps reload <dark_gray>- <gray>Reload the plugin"
      - "%prefix% <dark_gray>- <#DEC194> /simplewarps help <dark_gray>- <gray>View this message"
      - "%prefix% <dark_gray>- <#DEC194> /setwarp <warp> <dark_gray>- <gray>Set a warp at your location"
      - "%prefix% <dark_gray>- <#DEC194> /warp <warp> <dark_gray>- <gray>Teleport to a warp"
      - "%prefix% <dark_gray>- <#DEC194> /delwarp <warp> <dark_gray>- <gray>Delete a warp"
      - "%prefix% <dark_gray>- <#DEC194> /listwarps <dark_gray>- <gray>View all warps"
      - "%prefix% "
  setwarp:
    usage: "<gray>Please use <red>/setwarp <name><gray>!"
    set: "<gray>Warp <white>%warp% <green>has been created<gray>!"
    alreadySet: "<gray>Warp <white>%warp% <gray>already exists!"
  delwarp:
    usage: "<gray>Please use <red>/delwarp <name><gray>!"
    deleted: "<gray>Warp <white>%warp% <red>has been deleted<gray>!"
    notFound: "<gray>Warp <white>%warp% <red>does not exist!"
  warp:
    usage: "<gray>Please use <red>/warp <name><gray>!"
    teleported: "<gray>Teleporting to <white>%warp%<gray>..."
    notFound: "<gray>Warp <white>%warp% <red>does not exist<gray>!"
    unreachable: "<gray>Warp <white>%warp% <red>is unreachable<gray>! <underlined>Please contact an admin."
    notAllowed: "<gray>You are not allowed to teleport to the warp <white>%warp%<gray>!"
    cooldown: "<gray>You must wait <red>%time% seconds <gray>before teleporting again!"
  listwarps:
    usage: "<gray>Please use <red>/listwarps<gray>!"
    empty: "<gray>There are <red>no warps<gray>!"
    # In one line you need to use the %warp% placeholder, this line will be used for all warps
    list:
      - "%prefix%"
      - "%prefix%<white>List of all warps:"
      - "%prefix%"
      - "<gray>%prefix%<dark_gray> - <white>%warp% <gray><hover:show_text:'<gray>Click to get teleported.'><click:run_command:/warp %warp%>[TP]</click></hover>"
      - "%prefix%"
查看 german.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html

file-version: 1

# Generelle Nachrichten
general:
  noPlayer: "<gray>Dies können <red>nur Spieler<gray> ausführen!"
  noPerms: "<gray>Du hast <red>keine Berechtigung<gray> für diesen Befehl!"

# 命令消息
commands:
  # /simplewarps 命令的消息(插件的主命令)
  simplewarps:
    usage: "<gray>请使用 <red>/simplewarps <about/reload><gray>!"
    # 此消息必须包含 %version% 和 %author% 占位符,否则将被忽略
    reload:
      reloading: "<gray>SimpleWarps <yellow>正在重新加载<gray>..."

reloaded: "<gray>SimpleWarps 已成功重载<gray>!<dark_gray>(%time%ms)"
      error: "<red>加载 SimpleWarps 时出错<gray>!请检查控制台以获取详细信息。"
    help:
      - "%prefix% "
      - "%prefix% <white>命令列表:"
      - "%prefix% "
      - "%prefix% <dark_gray>- <#DEC194> /simplewarps about <dark_gray>- <gray>显示插件信息"

- "%prefix% <dark_gray>- <#DEC194> /simplewarps reload <dark_gray>- <gray>重新加载插件"
      - "%prefix% <dark_gray>- <#DEC194> /simplewarps help <dark_gray>- <gray>发送此消息"
      - "%prefix% <dark_gray>- <#DEC194> /setwarp <Warp> <dark_gray>- <gray>在你当前位置设置一个传送点"
      - "%prefix% <dark_gray>- <#DEC194> /warp <Warp> <dark_gray>- <gray>传送到指定传送点"
      - "%prefix% <dark_gray>- <#DEC194> /delwarp <Warp> <dark_gray>- <gray>删除一个传送点"
      - "%prefix% <dark_gray>- <#DEC194> /listwarps <dark_gray>- <gray>列出所有传送点"
      - "%prefix% "
  setwarp:
    usage: "<gray>请使用 <red>/setwarp <Name><gray>!"

set: "<gray>Warp <white>%warp% <green>wurde erstellt<gray>!"

alreadySet: "<gray>传送点 <white>%warp% <red>已存在<gray>!"
  delwarp:
    usage: "<gray>请使用 <red>/delwarp <名称><gray>!"
    deleted: "<gray>传送点 <white>%warp% <red>已被删除<gray>!"
    notFound: "<gray>传送点 <white>%warp% <red>不存在<gray>!"
  warp:
    usage: "<gray>请使用 <red>/warp <名称><gray>!"

teleported: "<gray>传送至 <white>%warp%<gray>..."
    notFound: "<gray>传送点 <white>%warp% <red>不存在<gray>!"
    unreachable: "<gray>传送点 <white>%warp% <gray>无法到达<gray>! <underlined>请联系管理员。"

notAllowed: "<gray>你不能传送到传送点 <white>%warp%<gray>!"
    cooldown: "<gray>你还需要等待 <red>%time% 秒<gray>才能再次传送!"
  listwarps:
    usage: "<gray>请使用 <red>/listwarps<gray>!"
    empty: "<gray>不存在任何<red>传送点<gray>!"
    # 在一行中必须使用 %warp% 占位符。此行将用于所有传送点。
    list:
      - "%prefix%"
      - "%prefix%<white>列出所有传送点:"
      - "%prefix%"

- "<gray>%prefix%<dark_gray> - <white>%warp% <gray><hover:show_text:'<gray>点击传送'><click:run_command:/warp %warp%>[TP]</click></hover>"
      - "%prefix%"

</details>

## 联系方式

如果您遇到任何问题或错误,或者有新增功能的请求,请通过 Discord 与我联系,或加入我的 Discord 服务器。

> 我的 Discord 用户名是 **Losterixx**。

> 我的 Discord 服务器:[链接](https://discord.gg/gnGsUAwp76)

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源