Salesmania 是一款专为 InvisionCraft 开发的拍卖插件,旨在替代那些存在过多缺陷或无法满足我们需求的同类插件。
最终我希望该插件能处理其他形式的购买/销售/交易,但目前主要焦点在于拍卖功能。
功能特性
拍卖功能
- 物品黑名单(禁止拍卖的物品)
- 持久化启用/禁用拍卖
- 冷却时间(两次拍卖之间的间隔)
- 自定义本地化支持(每位玩家可以选择自己的语言环境)
- 完全可自定义的输出内容
- 物品储物箱:当背包已满或玩家离线时保存玩家物品(使用 /collect 命令取回)
- 允许/禁止在创造模式下使用
- 自定义剩余时间通知
- 最小/最大加价幅度
- 最小/最大起拍价
- 服务器税收
- 防狙击功能
- 玩家可以忽略拍卖广播消息
- 使用 Vault 提供易读的 item 名称
- 使用 Vault 支持经济系统
- 生物生成器显示生物类型
- 相比其他同类插件更简单的启动命令
- 拍卖队列
- 能够查看当前排队中的拍卖
- 大幅降低在服务器崩溃/重启时丢失物品或货币的风险
- 频道支持(TownyChat 和 Herochat)
- 对于没有频道的服务器,广播仅发送至对应世界组内的世界。
- 世界组(见下文)
- WorldGuard 区域支持(见下文)
- 支持重命名物品、撰写过的书以及附魔书。
- 可能还有更多我忘记列出的功能
世界组
世界组是 v1.3 版本中的新功能。每个组都有独立的拍卖队列。一个组的玩家不能竞拍另一个组的拍卖物品。还可以为每个组指定单独的广播频道。
这也可以用于防止物品在世界间移动,物品储物箱现在也针对世界组进行区分。如果玩家在拍卖结束时不在同一个世界组中,物品将被存入储物箱,并且只能从正确的组中取回。
WorldGuard 区域支持
WorldGuard 区域支持将包含在 v1.39.1(beta) 及更高版本中。此功能提供了极大的灵活性。您可以设置每个区域允许的指令,以及玩家是否能在该区域内接收物品。如果您设置了 toStash 配置项,所有拍卖物品将自动发送给玩家的物品储物箱。然后您可以设置 deny: [collect] 以禁止玩家在该区域从储物箱中取回物品。您可以限制玩家取回物品、出价、发起拍卖或任何您想要限制的行为的能力。
即将推出的功能
您可以期待更多丰富的功能。我非常期待听到大家关于如何改进插件或功能的评论与建议 :)
依赖要求
本插件依赖 Vault 以实现经济兼容性和易读的 item 名称。
它应该能与所有受 Vault 支持的经济插件配合工作。
本地化
Salesmania 完全支持自定义本地化文件。
最新的英文本地化文件始终可以在 这里 找到
如果您创建了其他语言的本地化文件,我将不胜感激您将其提交以便包含在后续版本中:
指令
Auction
/auction start <starting bid> [quantity] [time] - 拍卖你手中持有的物品
/auction bid <bid> - 对正在拍卖的物品出价
/auction info - 显示当前拍卖的信息
/auction ignore - 忽略所有拍卖消息
/auction end - 结束拍卖,最后出价者获胜。
/auction cancel - 取消拍卖,物品归还所有者,最后一次出价退回
/auction enable|disable - 启用或禁用拍卖
Salesmania
/salesmania reload - 重新加载所有配置和本地化文件
/salesmania locale set <locale> - 更改您当前的语言环境
/salesmania locale list - 列出所有可用的语言环境
储物箱
/collect - 收集存储在物品储物箱中的物品
权限
- salesmania.auction.start - 允许您发起拍卖。
- salesmania.auction.bid - 允许您对拍卖出价。
- salesmania.auction.cancel - 允许您取消任意拍卖。
- salesmania.auction.end - 允许您结束任意拍卖。
- salesmania.auction.enable - 允许您启用拍卖。
- salesmania.auction.disable - 允许您禁用拍卖。
- salesmania.admin.reload - 允许您重新加载配置
完整的权限列表可以在 这里 找到
文档
在使用 Salesmania 时,我一直牢记用户界面应尽可能简洁,而事实确实如此。向玩家暴露的简单命令寥寥无几。然而,在这份简洁的背后,是一个功能复杂的插件,其中包含许多高级特性,并且还在不断新增。简而言之,我们需要文档支持。随着 v1.4 版本的发布以及代码库日益稳定,我将着手编写相关文档。在此期间,欢迎大家在评论区提出任何问题,若涉及更深入的探讨,也可通过私信联系我。
对于有兴趣协助完善 Salesmania 文档的人员,我已在此开放了 wiki:
请注意,Salesmania 从未被设计为仅仅一个插件。对于开发者而言,它提供了出色的 API,使其易于扩展。如果您有兴趣将 Salesmania 集成到您的插件中以进行扩展或添加新功能,但不知从何入手,我非常乐意帮助其他开发者。
更多链接
源代码
InvisionCraft
Salesmania is an auction plugin developed for InvisionCraft as an alternative to other similar plugins that were either too buggy, or simply didn't fit our needs.
Eventually i'd like this plugin to handle other forms of buying/selling/trading but for now the main focus has been the auction feature.
Features
Auction Features
- Item blacklist (items that can't be auctioned)
- Persistent enable/disable of auction
- Cooldown (time between auctions)
- Custom locale support (each player can select his/her own locale)
- Completely customizable output
- Item stash holds players items if inventory is full or offline (use /collect)
- Allow/Disallow use in creative mode
- Custom time remaining notifications
- Minimum/maximum bid increment
- Minimum/maximum starting bid
- Server taxes
- Anti-snipe
- Players able to ignore auction broadcasts
- Uses vault for easily-readable item names
- Uses vault for economy support
- Mob spawners show mob type
- Simpler start command compared to other similar plugins
- Auction queues
- Able to view the currently queued auctions
- Greatly reduced risk of losing items or currency on server crashes/restarts
- Channel support (TownyChat and Herochat)
- For servers without channels, broadcasts are sent only to worlds in the appropriate world group.
- World groups (see below)
- World guard region support (see below)
- Support for renamed items, written books, and enchanted books.
- Probably more stuff i forgot to list
World Groups
World groups are a new feature in v1.3. Each group has an independent auction queue. Players in one group can not bid on auctions from another group. Separate broadcast channels can also be specified for each group.
This can also be used to prevent items from moving between worlds, the item stash is now world group specific. If a player is not in the same world group at the end of an auction it will be added to the item stash and only able to be retrieved from the correct group.
Worldguard Region Support
Worldguard region support will be included in v1.39.1(beta) and later versions. This feature adds an extreme amount of flexibility. You'll be able to set the commands that are allowed in each region and also whether or not players will be able to receive items within that region. If you set the toStash configuration setting, all auction items will automatically be sent to the players item stash. You could then set deny: [collect] to disallow players from collecting items from their stash in that region. You can restrict your players ability to collect items, bid, start auctions, or anything you want.
Upcoming Features
- Selling.
- API support for web auctions.
You can expect many, many more features. I'm looking forward to hearing everyones comments or suggestions on how I can improve the plugin or features you're looking forward to :)
Requirements
This plugin depends on vault for economy compatibility and easily readable item names.
It should work with every economy plugin that is supported by Vault.
Locales
Salesmania fully supports custom locales.
The latest english locale file can always be found here
If you create a locale in a different language I would be extremely appreciative if you submitted it to be included in later versions:
- Email it here
- Fork on github and submit a pull request
- Submit a ticket here or here containing the locale
Commands
Auction
/auction start <starting bid> [quantity] [time] - Auctions the item you are holding
/auction bid <bid> - Bids on the item that is being auctioned
/auction info - Displays information on the current auction
/auction ignore - Ignores all auction messages
/auction end - Ends the auction with the last bidder as the winner.
/auction cancel - Cancels the auction, item is returned to owner and the last bid is returned
/auction enable|disable - Enables or disables the auction
Salesmania
/salesmania reload - Reloads all configuration and locales
/salesmania locale set <locale> - Changes your current locale
/salesmania locale list - Lists all available locales
Stash
/collect - Collects items stored in the Item Stash
Permissions
- salesmania.auction.start - Allows you to start an auction.
- salesmania.auction.bid - Allows you to bid on an auction.
- salesmania.auction.cancel - Allows you to cancel ANY auction.
- salesmania.auction.end - Allows you to end ANY auction.
- salesmania.auction.enable - Allows you to enable the auction.
- salesmania.auction.disable - Allows you to disable the auction.
- salesmania.admin.reload - Allows you to reload configuration
The full permissions list can be found here
Documentation
With Salesmania, I've always kept in mind that the user interface should be as simple as possible, and it is. There's really only a few simple commands exposed to your players. Unfortunately, behind that simplicity is a complex plugin full of advanced features and more are being added all the time. Long story short, we need documentation. I'll be working on this as v1.4 rolls around and the code base becomes more and more stable. Meanwhile, everyone should always feel free to ask any questions in the comments, or via PM if it's something more in-depth.
For people that might be interested in helping document Salesmania, I've opened up the wiki here:
Keep in mind that Salesmania was never designed to be just a plugin. For developers, there's a great API that makes it easily extensible. If you're interested in hooking into Salesmania to extend it or add features in your own plugin but don't know where to start, I'm ALWAYS happy to help fellow developers.
More Links
Source code
InvisionCraft
评论 0
登录后参与评分
还没有评论,来抢沙发吧