PaySign
一款轻量且强大的 Minecraft Spigot 插件,允许玩家创建基于交易的告示牌。玩家可以向指定目标玩家支付一定数量的货币,从而动态触发红石信号。非常适合用于玩家驱动的商店、自动化游戏或服务器上的高级自动系统!
功能特性
- 即时交易: 通过告示牌直接进行安全且自动化的货币转账。
- 红石集成: 支付成功后,会为告示牌后方或下方的方块通电,从而与门、活塞、命令方块等实现集成。
- 离线支付: 支持向当前离线的玩家发送资金。
- 支持 Vault: 无缝集成标准经济接口。
- 防漏洞保护: 内置验证机制,防止告示牌格式错误、误触或负数支付等漏洞利用。
- 权限控制: 完全控制谁可以创建和使用付款告示牌。
使用方法
1. 创建告示牌
要设置付款站点,请放置一个告示牌,并按以下格式逐行输入内容:
| 行 |
内容 |
说明 |
| 第一行 |
[PaySign] |
插件标识标签(区分大小写)。 |
| 第二行 |
PlayerName |
接收资金的玩家用户名。 |
| 第三行 |
Amount |
激活所需的确切费用/货币数量。 |
| 第四行 |
[Time] |
红石信号的持续时间(例如:秒)。 |
提示: 如果创建成功,标题 [PaySign] 会自动变色(例如变为深蓝色或绿色)以确认已激活。
2. 激活告示牌
- 玩家靠近告示牌并 右键点击 它。
- 如果玩家有足够的金钱,金额将从其余额中扣除并转移给接收者。
- 告示牌会发出临时的红石信号以驱动连接的装置。
权限
| 权限节点 |
说明 |
默认值 |
paysign.create |
允许玩家放置和创建 PaySign。 |
管理员 (op) |
paysign.use |
允许玩家与 PaySign 交互并通过其付款。 |
所有人 (true) |
依赖要求
- Vault(用于经济集成)
- 兼容的经济插件(例如 EssentialsX Eco、Treasury 或任何标准的 Vault 经济插件)
PaySign
A lightweight and powerful Minecraft Spigot plugin that allows players to create transaction-based signs. Players can pay a specified amount of currency to a target player, which dynamically triggers a Redstone signal. Perfect for player-driven shops, automated games, or premium automated systems on your server!
Features
- Instant Transactions: Secure and automated currency transfers directly through signs.
- Redstone Integration: Successfully completed payments power the block behind or under the sign, allowing integration with doors, pistons, command blocks, and more.
- Offline Payments: Support for sending money to players even if they are currently offline.
- Vault Supported: Seamless integration with standard economy hooks.
- Exploit Protection: Built-in validation to prevent sign formatting errors, accidental clicks, or negative payment exploits.
- Permission-Based: Full control over who can create and who can use the payment signs.
How to Use
1. Creating a Sign
To setup a payment station, place a sign and type the following format line-by-line:
| Line |
Content |
Description |
| Line 1 |
[PaySign] |
The plugin identifier tag (case-sensitive). |
| Line 2 |
PlayerName |
The username of the player who will receive the funds. |
| Line 3 |
Amount |
The exact cost / amount of currency required to activate. |
| Line 4 |
[Time] |
Duration of the Redstone signal (e.g., in seconds). |
Tip: If the creation is successful, the header [PaySign] will automatically change its color (e.g., to dark blue or green) to acknowledge activation.
2. Activating the Sign
- A player approaches the sign and Right-Clicks it.
- If the player has enough money, the amount is deducted from their balance and transferred to the receiving player.
- The sign emits a temporary Redstone signal to power connected mechanisms.
Permissions
| Permission |
Description |
Default |
paysign.create |
Allows a player to place and create a PaySign. |
Operators (op) |
paysign.use |
Allows a player to interact with and pay through a PaySign. |
Everyone (true) |
Requirements
- Vault (for economy integration)
- A compatible Economy Plugin (e.g., EssentialsX Eco, Treasury, or any standard Vault economy)
评论 0
登录后参与评分
还没有评论,来抢沙发吧