SignWarp
一款用于通过告示牌进行传送的 Bukkit 插件。
(Minecraft 版本 1.20 - 1.21.8)
SignWarp 允许玩家放置告示牌,并通过简单的右键点击在这些告示牌之间进行传送。
默认情况下,传送需要消耗一个末影珍珠,且该物品必须位于玩家手中并与告示牌交互时持有,但这也可以在配置中禁用。
权限
signwarp.create - 允许创建和销毁传送告示牌(默认:op)
signwarp.use - 允许使用传送告示牌(默认:所有人)
signwarp.reload - 允许重载配置(默认:op)
signwarp.admin - 允许访问传送管理 GUI(默认:op)
signwarp.* - 允许访问所有功能(默认:op)
signwarp.limit.unlimited - 允许无限创建传送点
命令:
/signwarp reload - 重载配置文件。
/signwarp gui - 打开传送管理 GUI。
使用方法
首先,在你想要作为传送目的地的位置放置一个包含以下内容的告示牌:
- 第一行:[WarpTarget] 或 [WPT]
- 第二行:你想要使用的名称
这将创建一个传送目标告示牌,设定玩家将被传送到的位置。
创建好目标告示牌后,再创建一个或多个作为传送起点的告示牌。
这可以通过放置一个包含以下内容的告示牌来实现:
- 第一行:[Warp] 或 [WP]
- 第二行:你想要使用的名称
注意:目标告示牌(WarpTarget)必须在创建传送起点告示牌之前存在!
双向传送(v1.2.0 新增!)
SignWarp 现在支持双向传送!此增强功能允许玩家在配对的传送告示牌之间无缝往返。
工作原理
- 正向传送:右键点击 [Warp] 告示牌会将你传送到对应的 [WarpTarget](原有行为)
- 返回传送:右键点击 [WarpTarget] 告示牌现在会将你传回对应的 [Warp] 告示牌(新功能!)
这在配对的告示牌之间创建了真正的双向传送系统,非常适合:
- 在基地之间建立交通网络
- 在冒险地图中设置快速旅行点
- 建立商人商店之间的连接
- 构建地牢入口/出口系统
技术细节
- 两个方向均遵循相同的权限、冷却时间和费用规则
- 插件在数据库中跟踪告示牌位置以确保可靠的双向链接
- 如果任一告示牌被破坏,链接将自动清理
- 适用于所有现有的传送配置(经济费用、物品费用、效果等)
创建好两个告示牌后,你可以手持 use-item(默认为末影珍珠)右键点击。
每次传送将消耗配置文件中 use-cost 设定的物品数量(默认:1)。
你可以在 config.yml 中移除 use-item 选项或将其设置为 "none",以允许使用任何物品(即每次使用传送免费)。
或者,你可以在 config.yml 中启用 teleport-cost,为每次传送向玩家收取固定数量的游戏货币。要使用此功能,请确保服务器上已安装 Vault。
传送限制系统
通过权限控制玩家可创建的最大传送点数量。
LuckPerms 示例:
/lp group default permission set signwarp.limit.3
这允许默认组的玩家最多创建 3 个传送点。
如果没有设置限制权限,玩家默认可以创建无限数量的传送点。
管理员 GUI
消息自定义
在 config.yml 配置文件中,您可以自定义插件使用的消息。这些消息定义在 messages 键下,您可以根据喜好进行修改。
预览:
messages:
create_permission: "&cYou do not have the required permissions to create warp signs!"
no_warp_name: "&cNo warp name set!\nPlease specify the warp name on the second line."
warp_created: "&aWarp sign successfully placed."
warp_name_taken: "&cA warp target with the same name already exists!"
warp_destroyed: "&aWarp destroyed."
target_sign_created: "&aTarget sign for warp successfully placed."
destroy_permission: "&cYou do not have the required permissions to destroy warp signs!"
invalid_item: "&cYou must use {use-item} for this warp!"
not_enough_item: "&cYou need {use-cost} {use-item} for this warp!"
warp_not_found: "&cSpecified warp does not exist!"
use_permission: "&cYou do not have the required permissions to use the warp sign!"
teleport: "&eTeleporting to {warp-name} in {time} seconds..."
teleport-success: "&aSuccessfully teleported to {warp-name}."
teleport-cancelled: "&cTeleport cancelled."
notify-cost: "&aYou have been charged {cost} currency for the teleportation."
not_permission: "&cYou do not have permission!"
limit_reached: "&cYou have reached your warp creation limit ({limit})."
warp_sign_removed: "&aWarp sign removed successfully!"
no_bidirectional_link: "&cNo return point found for this warp!"
{warp-name}:此占位符会被替换为告示牌上指定的传送点名称。
{use-item}:用于表示使用传送所需的物品名称。例如,如果所需物品是末影珍珠,此占位符将被替换为 "ENDER_PEARL"。
{use-cost}:此占位符会被替换为使用传送所需的物品数量。例如,如果使用传送的成本是 1 个末影珍珠,此占位符将被替换为 "1"。
{cost}:此占位符会被替换为传送所收取的货币数量。
{time}:此占位符会被替换为完成传送前的秒数。
你可以使用 Minecraft 颜色代码来美化你的文本。这些代码以 & 字符开头,后跟代表特定颜色的字母或数字。更多信息
音效与特效自定义
你可以在 config.yml 配置文件中自定义传送过程中播放的音效和特效:
音效列表 和 特效列表
注意:音效和特效必须使用大写,并且音效中的 "." 需替换为 "_"。
预览:
teleport-sound: ENTITY_ENDERMAN_TELEPORT
teleport-effect: ENDER_SIGNAL
截图
统计 (bstats.org)
SignWarp
A Bukkit plugin for teleportation using signs.
(Minecraft Version 1.20 - 1.21.8)
SignWarp allows players to place signs to teleport between them with a simple right-click.
By default, teleportation costs one ender pearl, which must be in the player's hand when interacting with the sign, but this can also be disabled in the configuration.
Permissions
signwarp.create - Allow creation and destruction of warp signs (default: op)
signwarp.use - Allow usage of warp signs (default: everyone)
signwarp.reload - Allow access to reload (default: op)
signwarp.admin - Allows access to the warp management GUI (default: op)
signwarp.* - Allow access to all features (default: op)
signwarp.limit.unlimited - Allows unlimited warp creation
Commands:
/signwarp reload - Reloads the configuration.
/signwarp gui - Open the warp management GUI.
How to Use
First, place a sign where you want to teleport with the following content:
- First line: [WarpTarget] or [WPT]
- Second line: The name you want to use
This will create a warp sign that sets the location to which a player teleports.
After creating the warp sign, create one or more warp signs from which you want to teleport to the target sign.
This is done by placing a sign with the following content:
- First line: [Warp] or [WP]
- Second line: The name you want to use
Note: The target sign (WarpTarget) must exist before creating the warp sign!
Bi-Directional Teleportation (New in v1.2.0!)
SignWarp now supports bi-directional teleportation! This enhancement allows players to travel back and forth between paired warp signs seamlessly.
How It Works
- Forward Travel: Right-clicking a [Warp] sign teleports you to the corresponding [WarpTarget] (existing behavior)
- Return Travel: Right-clicking a [WarpTarget] sign now teleports you back to the corresponding [Warp] sign (new feature!)
This creates a true two-way teleportation system between paired signs, perfect for:
- Creating transportation networks between bases
- Setting up quick travel points in adventure maps
- Establishing merchant shop connections
- Building dungeon entrance/exit systems
Technical Details
- Both directions respect the same permissions, cooldowns, and costs
- The plugin tracks sign locations in a database for reliable bi-directional links
- If either sign is broken, the link is automatically cleaned up
- Works with all existing warp configurations (economy costs, item costs, effects, etc.)
Once you have created both signs, you can right-click with the use-item in your hand (by default, it's an ender pearl).
Each teleportation will cost the number of items configured in use-cost (default: 1).
You can remove the use-item option in the config.yml or set it to "none" to allow any item to be used (i.e., each warp is free per use).
Alternatively, you can enable teleport-cost in the config.yml to charge players a set amount of in-game currency for each teleportation. Ensure Vault is installed on your server to use this feature.
Warp Limit System
Control the maximum number of warps players can create using permissions.
Example with LuckPerms:
/lp group default permission set signwarp.limit.3
This allows players in the default group to create up to 3 warps.
Without a limit permission, players can create an unlimited number of warps by default.
Admin GUI
Message Customization
In the config.yml configuration file, you have the option to customize the messages used by the plugin. These messages are defined under the key messages and can be modified according to your preferences.
Preview :
messages:
create_permission: "&cYou do not have the required permissions to create warp signs!"
no_warp_name: "&cNo warp name set!\nPlease specify the warp name on the second line."
warp_created: "&aWarp sign successfully placed."
warp_name_taken: "&cA warp target with the same name already exists!"
warp_destroyed: "&aWarp destroyed."
target_sign_created: "&aTarget sign for warp successfully placed."
destroy_permission: "&cYou do not have the required permissions to destroy warp signs!"
invalid_item: "&cYou must use {use-item} for this warp!"
not_enough_item: "&cYou need {use-cost} {use-item} for this warp!"
warp_not_found: "&cSpecified warp does not exist!"
use_permission: "&cYou do not have the required permissions to use the warp sign!"
teleport: "&eTeleporting to {warp-name} in {time} seconds..."
teleport-success: "&aSuccessfully teleported to {warp-name}."
teleport-cancelled: "&cTeleport cancelled."
notify-cost: "&aYou have been charged {cost} currency for the teleportation."
not_permission: "&cYou do not have permission!"
limit_reached: "&cYou have reached your warp creation limit ({limit})."
warp_sign_removed: "&aWarp sign removed successfully!"
no_bidirectional_link: "&cNo return point found for this warp!"
{warp-name} : This placeholder is replaced by the name of the warp specified on the sign.
{use-item} : Used to represent the name of the item required to use the warp. For example, if the required item is an ender pearl, this placeholder will be replaced by "ENDER_PEARL".
{use-cost} : This placeholder is replaced by the number of items needed to use the warp. For example, if the cost to use the warp is 1 ender pearl, this placeholder will be replaced by "1".
{cost} : This placeholder is replaced by the amount of currency charged for teleportation.
{time} : This placeholder is replaced by the time in seconds before the teleportation is completed.
You have the option to stylize your texts with Minecraft color codes. These codes start with the & character, followed by a letter or number representing a specific color. More informations
Sound and Effect Customization
You can customize the sound and effect played during teleportation in the config.yml configuration file:
List Sound and List Effect
Note : The sound and effect must be in uppercase and replace "." by "_" for the sound.
Preview :
teleport-sound: ENTITY_ENDERMAN_TELEPORT
teleport-effect: ENDER_SIGNAL
Screenshot
Statistics (bstats.org)
评论 0
登录后参与评分
还没有评论,来抢沙发吧