LandBuy
描述
LandBuy 是一款功能强大的 Paper Minecraft 插件,允许玩家从服务器购买地块。该插件为普通玩家提供了一种无缝的土地购买方式,同时防止他人干涉他们的财产。
特性
- 购买自定义地块
- 出售不再需要的土地
- 保护已拥有土地免受其他玩家侵害
- 可配置每方块价格和基础价格
- 查看地块详情
- 管理员工具用于管理玩家土地
- 向地块添加受信任成员
- 重命名土地
- 转让土地所有权
技术细节
LandBuy 将其显示名称、所有者和价格存储在自身的配置文件中,但使用 WorldGuard 作为后端来实际保护和存储区域。WorldGuard 区域名称是作为内部 ID 系统的一部分生成的,因此不会与现有区域冲突。对于货币交易,LandBuy 仅从玩家的 Vault 余额中扣除相应金额。
权限
LandBuy 包含两个权限。landbuy.land.own 允许购买和出售土地,而 landbuy.land.admin 允许查看和修改他人的土地。
命令
- 普通用户命令 (
landbuy.land.own):
/land select: 开始选择区域
/land cancel: 取消区域选择
/land buy: 购买当前选定的区域
/land sell <name>: 将一块土地卖回给服务器
/land details <name>: 查看地块的详细信息
/land borders: 切换边界显示和土地信息的开启或关闭
/land list: 查看拥有的土地列表
/land rename <old name> <new name>: 重命名地块
/land transfer <name> <player>: 转让土地所有权
/land trust <player> <name>: 添加受信任成员
/land untrust <player> <name>: 移除受信任成员
- 管理员命令 (
landbuy.land.admin):
/lbadmin list <player>: 列出指定玩家拥有的所有地块
/lbadmin listall: 列出所有注册的地块及其所有者
/lbadmin del <player> <land name>: 删除属于指定玩家的指定名称的地块
/lbadmin del <region ID>: 根据指定的区域 ID 删除地块
/lbadmin details <player> <land name>: 查看属于指定玩家的指定名称土地的详细信息
/lbadmin details <region ID>: 查看基于指定区域 ID 的土地详细信息
/lbadmin reload: 重新加载土地数据和配置
/lbadmin migrate: 将旧版 WorldGuard 区域迁移到插件自管系统
/lbadmin info: 显示关于插件的信息
配置
可以通过编辑 config.yml 更改全局插件设置。
pricing(定价):
base-price: 注册土地所需的基础价格,默认 $100
price-per-block: 每个方块的额外费用,默认 $1.25
sell-percentage: 出售时退还购买价格的百分比,默认 60% (0.6)
region(区域):
expand-down: 包含在购买土地中的最低选定方块下方的方块数,默认 15
player-limit: 玩家可拥有的土地数量限制,-1 表示无限制,默认 -1
admin-enforce-limit: 对拥有 landbuy.land.admin 权限的玩家强制执行 player-limit,默认 false
respect-worldguard: 不允许与 WorldGuard 区域重叠,默认 true
wg-whitelist: 排除上述检查中的某些 WorldGuard 区域,默认空数组
selection(选择):
timeout-minutes: 土地选择自动取消前的时间(分钟),默认 10 分钟
plugin(插件):
update-check: 是否自动检查更新,默认 true
allow-beta: 是否检查 beta 分支而非稳定版的更新,默认 false
currency-sign: 使用的货币符号,默认 "$"
currency-sign-before: 货币符号是否在数值之前而不是之后,默认 false
依赖项
LandBuy 依赖于 Vault 插件,并需要诸如 EssentialsX 之类的经济插件。
兼容性
LandBuy 专为 PaperMC 服务器构建。它可能也适用于 PaperMC 的分叉版本,如 Folia 或 Purpur,但不保证兼容性。
文档
有关项目的更多详细信息,请参阅 文档。
许可证
LandBuy 是在 MIT 许可证 下发布的免费开源软件。根据此许可证的条款,您有权自由使用、修改或重新分发该程序和源代码。
LandBuy
Description
LandBuy is a robust Minecraft plugin for Paper that allows players to purchase plots of land from the server. This plugin offers a seamless way for ordinary players to purchase land from the server in a way that prevents others from messing with their property.
Features
- Buy custom plots of land
- Sell land you no longer want
- Protection of owned land from other players
- Configurable price per block and base price
- See details about a plot of land
- Admin tools to manage players' land
- Add trusted members to a plot of land
- Rename land
- Transfer ownership of land
Technical
LandBuy stores display names, owners, and prices in its own configuration file, but uses WorldGuard for the backend to actually protect and store regions. Worldguard region names are generated as part of an internal ID system, so they won't clash with existing regions. For monetary transactions, LandBuy simply withdraws from a player's Vault balance.
Permissions
LandBuy comes with two permissions. landbuy.land.own gives access to buying and selling land, while landbuy.land.admin gives permission to view and modify other people's land.
Commands
- Normal user commands (
landbuy.land.own):
/land select: Start off by selecting a region
/land cancel: Cancel region selection
/land buy: Buy the region currently selected
/land sell <name>: Sell a plot of land back to the server
/land details <name>: See the details about a plot of land
/land borders: Toggle border display and land info on or off
/land list: See a list of owned land
/land rename <old name> <new name>: Rename a plot of land
/land transfer <name> <player>: Transfer ownership of land
/land trust <player> <name>: Add a trusted member
/land untrust <player> <name>: Remove a trusted member
- Admin commands (
landbuy.land.admin):
/lbadmin list <player>: List all plots of land owned by a specified player
/lbadmin listall: List all registered plots of land and their owners
/lbadmin del <player> <land name>: Delete a plot of land with a specified name belonging to a specified player
/lbadmin del <region ID>: Delete a plot of land based on the specified region ID
/lbadmin details <player> <land name>: See details of land with a specified name belonging to a specified player
/lbadmin details <region ID>: See details of land based on the specified region ID
/lbadmin reload: Reload land data and config
/lbadmin migrate: Migrate legacy WorldGuard regions to the plugin's self-managed system
/lbadmin info: Show info about the plugin
Configuration
Global plugin settings can be changed by editing config.yml.
pricing:
base-price: The base price required to register land, default $100
price-per-block: Additional price charged for each block, default $1.25
sell-percentage: Percentage of buy price that will be refunded on sell, default 60% (0.6)
region:
expand-down: The number of blocks below the lowest selected block to include in the land purchase, default 15
player-limit: The limit of lands a player can own, -1 for no limit, default -1
admin-enforce-limit: Enforce player-limit for players with the landbuy.land.admin permission, default false
respect-worldguard: Disallow overlap with WorldGuard regions, default true
wg-whitelist: Exclude certain WorldGuard regions from the above check, default empty array
selection:
timeout-minutes: The time in minutes before land selection will automatically be canceled, default 10 min
plugin:
update-check: Whether or not to automatically check for updates, default true
allow-beta: Whether to check the beta branch for updates rather than stable, default false
currency-sign: What symbol to use for currency, default "$"
currency-sign-before: Whether or not currency symbol goes before the value rather than after
Dependencies
LandBuy depends on the Vault plugin and requires an economy plugin such as EssentialsX.
Compatibility
LandBuy is built for PaperMC servers. It will likely also work with forks of PaperMC such as Folia or Purpur, however, compatibility is not guarunteed.
Documentation
For more details about the project, see the documentation.
License
LandBuy is free and open source software licensed under the MIT License. You have the right to use, modify, or redistribute, the program and source code freely under the terms of this license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧