本插件完全兼容 1.12 和 1.13!
据我所知,1.14 版本也不应存在问题。如果发现其他问题,请提交错误报告,我会进行修复。(2019年10月16日)
Logo 由 xDizasterCYx 制作,非常感谢!
CommandsForSale 是一个极其轻量级的插件,允许你通过商店 GUI 向玩家出售命令。每个命令都在配置文件中设置好价格以及该命令的所有其他别名。
命令
- /buycmd - 打开命令购物 GUI。
- /buycmd [Command Name] - 开始购买某个命令。一旦购买开始,如果用户不想继续,必须通过 /confirm 或 /deny 进行确认。如果购买会导致玩家余额为负,则无法进行购买。
- /buyonce <CommandName> [price] - 购买名为 [CommandName] 的命令的一次性使用通行证。添加 price 参数可以指定该命令的价格。此类购买无需确认。通行证将允许下一次尝试使用该命令,并且可以叠加。
- /confirm - 确认由 /buycmd 发起的购买,或在未完成的关闭 GUI 后确认。
- /deny - 拒绝由 /buycmd 发起的购买,或在未完成的关闭 GUI 后拒绝。
- /boughtcmds [Player Name] - 列出用户已购买的所有命令。要查看其他玩家的购买记录,发送者必须拥有 cmdsforsale.moderator 权限。(控制台不受限)
- /cmdstobuy - 列出发送者可以购买的命令(不包括已经购买的命令)。
- /cmdsforsale <reload || addcmd || addalias || updatestatus> - 注意:此命令需要 cmdsforsale.moderator 权限节点(控制台不受限)。/cfs 是该命令的别名。
/cmdsforsale 的子命令
- reload - 刷新配置文件,包括任何自动生成的编辑内容。
- addcmd <Command Name> - 将命令添加到配置中,并创建配置该命令所需的设置。
- addalias <Command Name> <Alias Name> - 将指定的别名添加到给定的命令中。
- updatestatus - 显示上次更新尝试的状态。
依赖项
- Vault(用于经济系统)
权限
- cmdsforsale.moderator - 给予玩家访问 /cmdsforsale 所有子命令的权限,并可以查看其他玩家的购买记录。拥有此权限的玩家也免于购买命令的限制。
- cmdsforsale.buyexempt - 使玩家免于购买命令的限制,而不赋予其管理员能力。管理员不需要此权限。
- cmdsforsale.use - 给予玩家访问 CommandsForSale 中命令的权限。默认开启。
配置文件
虽然视频教程更好,但这里提供文本形式的配置说明。
即将推出
目前暂无内容,但欢迎提供建议!
外部资源
插件指标 (Plugin Metrics)
本插件使用 PluginMetrics,这是一个允许插件开发者查看其插件使用情况的服务。以下数据以某种方式从服务器读取:
- plugins/Plugin Metrics/config.yml 的文件内容(如果不存在则创建)
- 当前在线玩家数量(非最大玩家数)
- 服务器版本字符串(与你在 /version 中看到的相同)
- 支持 metrics 的插件的版本号
- Mineshafter 状态 - 它不能正确传播 Metrics 请求,但这只是一个非常简单的检查,且不读取文件系统
以下数据发送至 :
- 实现类的 Metrics 修订版
- 服务器的 GUID(我无法看到此信息)
- 当前在线玩家数量(非最大玩家数)
- 服务器版本字符串(与你在 /version 中看到的相同)
- 支持 metrics 的插件的版本号
我收到的所有数据均已发布 此处。
更新器 (Updater)
本插件使用 Updater。此服务将自动更新插件,无需服务器所有者进行任何操作。可以在 CommandsForSale 配置中禁用它,并在配置 PDF 文件中有详细说明。
源代码
v1.2.5 已知问题
- GUI 的材料列表已过时。只需小心操作即可正常使用。
支持
遇到错误?提交工单!有建议?我很乐意听取你的意见!:
This is completely compatible with 1.12, 1.13!
To my knowledge, 1.14 should also pose no issue. Submit a bug report if you find otherwise and I'll fix it up. (10/16/19)
Logo by xDizasterCYx Thank you!
CommandsForSale is an extremely lightweight plugin that allows you to sell commands to your players from a shop GUI. Each command is set up in the configuration file with the price and all other aliases of the command.
Commands
- /buycmd- Opens the command shopping GUI.
- /buycmd [Command Name]- Initiates the purchase of a command. Once the purchase has begun, it must be confirmed by /confirm or /deny if the user does not want to continue. Purchases cannot be made if it leaves the player with a negative balance
- /buyonce <CommandName> [price]- buys a one time use pass for the command named. Adding the price argument will state the price of that command. There is no confirmation for these purchases.The pass will allow the next attempted use of the command and can stack.
- /confirm- Confirms the purchase initiated by /buycmd or if the GUI was closed without finishing
- /deny- Denies the purchase initiated by /buycmd or if the GUI was closed without finishing
- /boughtcmds [Player Name]- Lists all the commands that the user has purchased. To see other players, the sender must have the cmdsforsale.moderator permission. (Console exempt)
- /cmdstobuy- Lists the command that the sender can purchase (Not including commands already purchased)
- /cmdsforsale <reload || addcmd || addalias || updatestatus>- Note: This command requires the permission node cmdsforsale.moderator (Console exempt). /cfs is an alias of this command
Subcommands of /cmdsforsale
- reload- Refreshes the configuration file including any edits made to be auto-generated.
- addcmd <Command Name>- Adds a command to the config and creates the settings necessary to configure the command
- addalias <Command Name> <Alias Name>- Adds the specified alias to the command given
- updatestatus- Gives the status from the last update attempt
Dependencies
- Vault (For an economy)
Permissions
- cmdsforsale.moderator - Gives the player access to all subcommands of /cmdsforsale and can view other player's purchases. Players are also exempt from buying commands with this node.
- cmdsforsale.buyexempt - Exempt the player from the purchase of commands without giving them moderator abilites. Moderators do not need to be given this permission.
- cmdsforsale.use - Gives the player access to commands in commandsforsale. This is on by default.
Configuration File
While the video tutorial is better, here's a text form of the config instructions.
Comming Soon
Nothing at the moment, but please give me ideas!
External Resources
Plugin Metrics
This plugin uses PluginMetrics, a service that allows plugin developers to see how their plugin is being used. The following data is read from the server in some way or another:
- File Contents of plugins/Plugin Metrics/config.yml (created if not existent)
- Players currently online (not max player count)
- Server version string (the same version string you see in /version)
- Plugin version of the metrics-supported plugin
- Mineshafter status - it does not properly propagate Metrics requests however it is a very simple check and does not read the file system
The following data is sent to :
- Metrics revision of the implementing class
- Server's GUID (I can't see this)
- Players currently online (not max player count)
- Server version string (the same version string you see in /version)
- Plugin version of the metrics-supported plugin
ALL data that I receive has been posted here.
Updater
This plugin uses Updater. This service will automatically update the plugin without any work from a server owner. It can be disabled in the CommandsForSale config, and is explained in the config PDF file.
Source Code
Known Issues With v1.2.5
- The material list for GUIs is outdated. Just be careful and things should be okay.
Support
Have an error? Submit a ticket! Have a suggestion? I'd love to hear your opinions!:
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
下载 CommandsForSale
兼容 1.9 服务器。
兼容 1.9 服务器。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧