LockBuy

源代码 | 插件门户
功能
- 购买和出售 Lockette 容器(门、箱子、熔炉、发射器)的使用权。
- 支持:iConomy (4, 5 & 6)、BOSEconomy、Essentials Economy。
详情
LockBuy 允许你购买和出售 Lockette 容器的使用权。你可以设置价格,然后让插件在容器被购买时自动转移控制权。
注意:“容器”指的是所有可以被 Lockette 锁定的物品,即熔炉、门、发射器和箱子。
使用方法
要创建一个允许你出售 Lockette 容器的告示牌,你必须先锁定一个容器。
然后,将你的 LockBuy 告示牌放置在 Lockette 告示牌的旁边(可以在上方或下方,或任何一侧。只要两个告示牌“相邻”,就能正常工作)。
确保你的告示牌格式如下:
在数量行中,你可以添加额外信息,只要数字仍然存在即可。
例如,你可以写“Price: $5”,插件会将价格识别为 5。
如果成功,第四行将更新为绿色的 [Active] 标签。如果失败,告示牌会返回到你的物品栏,并显示错误信息。
要启用或禁用告示牌(例如,为了让你在不购买容器的情况下也能破坏告示牌),只需右键点击告示牌。它将在状态之间切换。
使用告示牌时,左键点击它。一旦你购买了容器,LockBuy 告示牌就会消失!(可选)
权限
LockBuy 支持 Permissions 2.x 和 Superms。
- lockbuy.admin.toggle - 此节点允许玩家/组在激活和非激活状态之间切换告示牌。(如果没有安装 Permissions,仅限管理员)
- lockbuy.admin.place - 此节点允许玩家/组在任何 Lockette 告示牌旁放置 LockBuy 告示牌。(如果没有安装 Permissions,仅限管理员)
- lockbuy.user.use - 此节点允许玩家/组使用 LockBuy 告示牌。
- lockbuy.user.place - 此节点允许玩家/组在他们当前拥有的 Lockette 告示牌旁放置 LockBuy 告示牌。
配置
配置文件 config.yml 将以默认值生成:
payOriginalOwner: true
clearOtherOwners: false
allowNegative: false
signsPersist: false
destroyMoreUsersSign: false
- payOriginalOwner - 设置为 true 时,Lockette 容器的原始所有者(即第一个定义的所有者)将获得容器出售所得的金额。
- clearOtherOwners - 设置为 true 时,插件会在添加新所有者之前清除 Lockette 告示牌上的所有其他所有者。否则,它仅更改*主要*所有者(即第一个定义的所有者)
- allowNegative - 设置为 true 时,插件不会检查此交易是否会导致玩家的余额变为负数。
- signsPersist - 设置为 true 时,当 Lockette 容器被购买时,LockBuy 告示牌不会消失。设置为 false 时,LockBuy 告示牌会消失。
- destroyMoreUsersSign - 设置为 true 时,如果发现 More Users 告示牌,它将直接被销毁,而不是清除其中的名字。设置为 false,且 clearOtherOwners 为 true 时,More Users 告示牌将简单地移除其中的名字。
LockBuy

SOURCE | PLUGIN PORTAL
Features
- Buy and sell the rights to Lockette containers. (doors, chests, furnaces, dispensers)
- Supports: iConomy (4, 5 & 6), BOSEconomy, Essentials Economy.
Details
LockBuy allows you to sell and buy the rights to Lockette containers. You can set the price, and then let the plugin automatically transfer control of the container when it is purchased.
NOTE: "Container" refers to all items than can be locked by Lockette, i.e. Furnaces, Doors, Dispensers and Chests.
How To Use
To create a sign which allows you to sell your Lockette container, you must first lock a container.
Then, place your LockBuy sign adjacent to the Lockette sign (this can mean above or below, or any side. As long as both signs are "touching," it will work).
Make sure your sign has this format:
[LockBuy]
<amount>
<blank>
<blank>
In amount, you can add extra info, as long as the number is still there.
For example, you can have "Price: $5" and the plugin will recognize the price as 5.
If successful, the fourth line will update to a green [Active] tag. If unsuccessful, the sign will return to your inventory, and you will receive an error.
To enable or disable a sign (for example, to allow you to destroy the sign without buying the container), simply right click the sign. It will toggle states.
To use a sign, left click it. Once you have bought a container, the LockBuy sign will disappear! (optional)
Permissions
LockBuy supports both Permissions 2.x and Superms.
- lockbuy.admin.toggle - this node allows the player/group to toggle the signs between active and inactive. (ops only if no Permissons installed)
- lockbuy.admin.place - this node allows the player/group to place LockBuy signs for any Lockette sign. (ops only if no Permissions installed)
- lockbuy.user.use - this node allows the player/group to use LockBuy signs.
- lockbuy.user.place - this node allows the player/group to place LockBuy signs next to Lockette signs they currently own.
Configuration
The configuration file config.yml will be generated with the default values:
payOriginalOwner: true
clearOtherOwners: false
allowNegative: false
signsPersist: false
destroyMoreUsersSign: false
- payOriginalOwner - when set to true, the original owner of the Lockette container (i.e. the first defined) will get paid the amount the container was sold for.
- clearOtherOwners - when set to true, the plugin will clear all the owners from the Lockette sign before adding the new owner. Otherwise, it only changes the *main* owner (i.e. the first one defined)
- allowNegative - when set to true, the plugin will not check to see if this transaction sends the player's balance into a negative amount.
- signsPersist - when set to true, the LockBuy sign will not disappear when the Lockette container is purchased. When set to false, the LockBuy sign disappears.
- destroyMoreUsersSign - when set to true, if a More Users sign is found, it will simply be destroyed, instead of clearing the names from it. When set to false, and clearOtherOwners is true, the More Users sign will simply have the names removed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧