概述:
该插件非常简单。每隔 x 分钟,它会在设定的边界范围内随机位置生成一个宝箱(边界也在配置文件中设置),宝箱内包含随机物品(同样在配置文件中设置)。
完整的外部通信披露:
该插件有一个选项可以执行外部通信。这仅做两件事:
- 检查是否有可用更新
- 从我的服务器获取每日提示(MOTD)并在控制台中显示(不在聊天栏中显示)。
如果此功能让您感到困扰,您可以在 Treasure :) 的配置文件中禁用它(Allow Calling Home: false)
插件可能会显示有新版本可用,但该版本尚未获得 Bukkit 工作人员的批准,因此不会出现在插件页面上。只需等待几个小时后再试一次。:)
调试模式:
调试模式使用权限节点 treasure.debug,并显示可能导致插件无法正常工作的冲突信息。进入您希望生成宝箱的世界,输入 "/debugtreasure"。只有拥有该权限节点的用户才能使用此命令,并且您的配置文件中需要设置 debug: true。此外,如果开启此功能,我的用户名将自动拥有查看调试对话框的权限。默认情况下它是关闭的,如果您在使用插件时遇到问题,请将其打开。请确保物品数量和堆叠数量相同,并且插件尝试生成的世界与您希望生成的世界一致。确保等待时间大于 0,并确保生成的方块 ID 是一个有效的方块(如果是物品将会报错!)。
配置:
配置非常简单。将插件放入 plugins 文件夹,然后启动服务器。之后停止服务器,进入 plugins/Treasure 文件夹,然后打开 items.yml 和 config.yml。配置文件已设置为默认值,您可以根据需要进行添加。您可以按照以下格式无限添加行:
Item: x StackLimit: y Curve: z
添加到 items.yml 文件中,每行添加一项。
Curve(曲线)决定了物品的生成频率。例如,如果您有 10 个物品,每个物品的 curve 值为 1,它们将以相同的概率生成。然而,如果这 10 个物品中有 5 个的 curve 值为 2,那么这 5 个物品的生成概率将是 curve 值为 1 的物品的两倍。
帮助:
如果您对该插件有任何问题,请在下方留言并告知我。:)
如果由于该插件导致控制台出现错误,请确保您的配置文件正确无误。如果您想重新初始化配置,只需删除 "plugins" 文件夹中的 "Treasures" 文件夹,然后重新启动服务器即可。
命令:
/debugtreasure(仅在配置中设置 debug 为 true 时有效...)
/spawnchest [x] [y] [z]
注意:[x] [y] [z] 是可选参数。如果不提供这些参数,宝箱将根据您的位置限制随机生成。
/last10(列出最后生成的十个宝箱,此列表在服务器重启和重载时会重置...)
权限:
管理员(Ops)自动拥有执行 /spawnchest 命令和 /last10 命令的权限!
权限节点:
treasure.spawnchest
treasure.debug
treasure.last10
Overview:
This plugin is quite simple. It, every x minutes, will spawn a treasure chest at a random location within set bounds (also set in the config) that has random items inside (also set in config).
Full Call-Home Disclosure:
This plugin has an option to perform calls home. This does exactly two things:
-Checks if an update is available
-Gets a MOTD from my server to display in console (not in chat).
If this feature bothers you, you can disable it in the config file for Treasure :) (Allow Calling Home: false)
The plugin may show that a new update is available but it hasn't been approved by the Bukkit staff yet, so it won't show up on the plugin page. Just wait a few hours and try again. :)
Debug mode:
Debug mode uses the permission node treasure.debug, and shows you info that may be conflicting and causing the plugin not to work. Go to the world you want the chest to spawn in, and type "/debugtreasure". This will only work if you have the permission node, and requires debug: true is in your config file. As well, if it is on, my username automatically has permission to view the debug dialog. By default it is off, turn it on if you are having some trouble with the plugin. Check to make sure item count and stack count are the same, and that the world it is trying to spawn in is the same world you want it to spawn in. Make sure the wait time is above 0, and make sure that the spawn block ID is a block (an item will throw an error!).
Configuration:
Configuration is extremely simple. Put your plugin in the plugins folder, and startup the server. After this, stop the server, go into the plugins/Treasure folder, then open items.yml and config.yml. The config files are set to the defaults, and you can add to them as you go. You can add an unlimited number of lines in the format of:
Item: x StackLimit: y Curve: z
to the items.yml file, adding each on a new line.
Curve is how commonly an item spawns. For example, if you have 10 items, each with curve 1, they will all spawn at the same rate. However, if 5 of those 10 items have a curve of 2, each of the five with a curve of 2 are 2x as likely to spawn as those with a curve of one.
Help:
If you have any issues with this plugin, please post below and let me know. :)
If you are getting errors in console due to this plugin, ensure that your config files are correct. If you want to start the config over, just delete the "Treasures" folder in "plugins" and start the server up again.
Commands:
/debugtreasure (only works if debug is set to true in config...)
/spawnchest [x] [y] [z]
Note: [x] [y] [z] are optional arguments. Without them, a chest will be spawned randomly as per your location restrictions.
/last10 (lists last ten chests that spawned, this list resets on restart and reload of server...)
Permissions:
Ops are automatically able to perform the /spawnchest command and the /last10 command!
Permission nodes:
treasure.spawnchest
treasure.debug
treasure.last10
评论 0
登录后参与评分
还没有评论,来抢沙发吧