Auction House Plugin

插件

· 作者 ElaineQheart

输入 /ah 打开拍卖行。

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

最新 1.5.6 · 26.3 · Bukkit / Folia

一键开服(送7天)

AuctionHouse 功能

Auction House 插件

使用 /ah 打开拍卖行。

依赖项:


服务器管理员还可以使用以下命令:
/ah admin(打开拍卖行,但如果点击某个物品,可以将其从拍卖行中删除)
/ah ban(使某个玩家无法使用 /ah 命令)

这些命令的描述在游戏中已经提供。如果你不是服务器的 OP(操作者),但希望通过权限来访问这些命令,当前的权限名称是 "auctionhouse.moderator"。

Auction Master 展示的两个拍卖物品 要设置拍卖,请使用 /ah sell <价格>

config.yml
tax: 0.01                                   # 1% 税率
auction-setup-time: 30                      # 上架物品到拍卖行所需的时间(单位:秒)
default-max-auctions: 10                    # 默认最大拍卖数量
sold-message: true                          # 当玩家的某件物品售出时,向玩家发送消息
auto-collect: false                         # 当拍卖成交时,自动将款项支付给玩家并从拍卖行中移除该物品
partial-selling: false                      # 允许玩家选择购买拍卖物品的数量
admin-permission: "auctionhouse.moderator"  # 管理员权限
display-update: 20                          # 20 ticks = 1 秒,物品显示更新的频率;可设置为 1 以实现即时更新
auction-announcements: true                 # 当有人上架物品进行拍卖时发布公告(玩家可以使用 /ah announce 命令切换此功能)

bin-auctions: true # BIN = 立即购买 [/ah sell <数量>] bin-auction-duration: 172800 # 拍卖持续时间(秒)(606048 = 172800) min-bin: 1 # 最低售价 bid-auctions: true # 启用真实拍卖,通过输入 [/ah bid <数量>]

bid-auction-duration: 7200                  # 竞价拍卖持续的时长,单位为秒(60*60*2 = 7200)
min-bid: 1                                  # 最低出价价格
last-bid-extra-time: 60                     # 如果在出价时拍卖剩余时间少于该值,则将其延长至该值
bid-increase-percent: 25                    # 每次出价至少需要增加的百分比
permissions.yml 文件示例
# 默认的拍卖槽位和持续时间可以在 config.yml 文件中编辑
# 默认为空。要添加等级/权限,请按以下方式添加:

拍卖槽位: vip: 12 mvp: 15 custom.example.permission: 50 拍卖时长: vip: 259200 # 6060243 = 3 days mvp: 345600 # 6060244 = 4 days custom.example.permission: 432000 # 5 days

--------------------------------------------------------------------------------------------

这里的 "vip" 和 "mvp" 直接用作权限节点。

如果你希望权限节点为 "ah.vip",你需要这样添加:

auction-slots:
ah.vip: 12


</details>

<details>
<summary>消息文件 (messages.yml) 中使用的颜色代码</summary>

§k 隐藏字符

§l 粗体

§m 删除线

§n 下划线

§o 斜体

§r 重置

&n 换行

§0: 黑色

§1: 深蓝色

§2: 深绿色

§3: 深青色

§4: 深红色

§5: 深紫色

§6: 金色

§7: 灰色

§8: 深灰色

§9: 蓝色

§a: 绿色

§b: 青色

§c: 红色

§d: 浅紫色

§e: 黄色

§f: 白色

</details>

<details>
<summary>布局文件 (layout.yml)</summary>

你可以用其他字符替换任意字符,甚至删除某一行以更改布局。字符之间的空格是为了让布局更清晰。字符定义见下方。

ah-layout:

  • '# # # # # # # # #'
  • '# . . . . . . . #'
  • '# . . . . . . . #'
  • '# . . . . . . . #'
  • '# # # # # # # # #'
  • 's o # p r n # f m' my-ah-layout:
  • '# # # # # # # # #'
  • '# . . . . . . . #'
  • '# . . . . . . . #'
  • '# . . . . . . . #'
  • '# # # # # # # # #'
  • 'b o # p r n # d i' '#': ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:black_stained_glass_pane count: 1 components: minecraft:tooltip_display: '{hide_tooltip:1b}' schema_version: 1 s: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:oak_sign count: 1 schema_version: 1 active-search: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:spruce_sign count: 1 schema_version: 1 o: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:hopper count: 1 schema_version: 1 p: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:arrow count: 1 schema_version: 1 r: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:nether_star count: 1 schema_version: 1 n: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:arrow count: 1 schema_version: 1 m: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:ender_chest count: 1 schema_version: 1 b: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:arrow count: 1 schema_version: 1 i: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:paper count: 1 schema_version: 1 f: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:powered_rail count: 1 schema_version: 1 d: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:golden_carrot count: 1 schema_version: 1 bin-filter-bin: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_ingot count: 1 schema_version: 1 bin-filter-auctions: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_block count: 1 schema_version: 1 locked-slot: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:barrier count: 1 schema_version: 1 back-to-my-auctions: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:arrow count: 1 schema_version: 1 anvil-search-paper: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:paper count: 1 schema_version: 1 cancel: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:red_banner count: 1 schema_version: 1 collect-expired-item: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:red_dye count: 1 schema_version: 1 cancel-auction: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:red_concrete count: 1 schema_version: 1 command-block-info: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:structure_block count: 1 schema_version: 1 admin-cancel-auction: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:red_concrete count: 1 schema_version: 1 admin-expire-auction: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:red_dye count: 1 schema_version: 1 confirm: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:green_banner count: 1 schema_version: 1 choose-item-buy-amount: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:oak_hanging_sign count: 1 schema_version: 1 dirt: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:dirt count: 1 schema_version: 1 turtle-scute-confirm: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:turtle_scute count: 1 schema_version: 1 cannot-afford: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:armadillo_scute count: 1 schema_version: 1 collect-sold-item: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:diamond count: 1 schema_version: 1 bid-history: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:filled_map count: 1 schema_version: 1 bid-explanation: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_ingot count: 1 schema_version: 1 submit-bid: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_nugget count: 1 schema_version: 1 cannot-afford-bid: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:armadillo_scute count: 1 schema_version: 1 top-bid: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_block count: 1 schema_version: 1 collect-auction: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_block count: 1 schema_version: 1 collect-coins: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:gold_nugget count: 1 schema_version: 1 own-bid: ==: org.bukkit.inventory.ItemStack DataVersion: 4325 id: minecraft:poisonous_potato count: 1 schema_version: 1 sounds: click: "UI_STONECUTTER_SELECT_RECIPE" open-enderchest: "BLOCK_ENDER_CHEST_OPEN" close-enderchest: "BLOCK_ENDER_CHEST_CLOSE" break-wood: "BLOCK_WOOD_BREAK" experience: "ENTITY_EXPERIENCE_ORB_PICKUP" villager-deny: "ENTITY_VILLAGER_NO" open-shulker: "BLOCK_SHULKER_BOX_OPEN" close-shulker: "BLOCK_SHULKER_BOX_CLOSE"

## 常见问题解答

**问:** 我可以自定义消息和 GUI 文本吗?
**答:** 可以,编辑插件文件夹中的 `messages.yml` 文件。你可以在 `messages.yml` 文件的 "placeholders" 下将货币从 "coins" 更改为你喜欢的任何名称。

**问:** 如何在使用新选项时更新配置文件?
**答:** 插件在更新时会自动添加缺失的配置选项,而不会覆盖你的自定义设置。

**问:** 如何生成拍卖行村长、物品展示框,以及如何移除它们?
**答:** 如果你是管理员(op),可以使用 `/ah summon <entity>` 命令来生成,支持 Tab 键补全。要移除它们,只需在创造模式下且身为服务器管理员时击打它们即可。

**问:** 拍卖行村民和物品展示框一段时间后消失
**答:** 如果你执行了类似 `/kill @e` 的命令,它们当然会被移除。此外,如果你使用 `/teleport @e`,它们也会被移动。

**问:** 如何报告错误或请求新功能?
**答:** 你可以加入我的新 [Discord 服务器](https://discord.gg/ePTwfDK6AY) 并直接联系我。

**问:** 有维基吗?
**答:** 有的,在本页面的“链接”部分。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源