这个插件是我在周末制作的,它允许用户将宠物放入便携的刷怪蛋中,从而可以跨越长距离甚至不同维度来转移宠物,而不需要手动搬运。说实话,使用命令并右键点击你的宠物然后把它放到别的地方,比修建一条巨大的冰路并祈祷宠物在路上不会死要容易得多。
重要提示:请务必使用 /pp 命令切换至宠物拾取模式,否则该功能无法正常工作!OP(管理员)默认拥有此权限,但普通用户需要特定的权限节点,请查看下方说明。我建议使用 LuckPerms 等插件来确保权限节点正常工作。
注意:如果在更新之间遇到配置问题,目前建议删除 settings.yml,以便插件在启动时重新生成它。
权限节点:
pp.toggle - 开启或关闭宠物拾取模式。
pp.bypass.worldguard - 绕过 WorldGuard 限制。
pp.bypass.whitelist - 绕过实体类型白名单。
pp.bypass.pickup - 绕过宠物所有权保护。
pp.rename - 使用 /pprename 命令。
pp.renamelegacy - 使用 /pprenamelegacy 命令。
配置选项:
databaseType: 用于存储被拾取的实体的数据库类型。
databaseIP: 所配置数据库的 IP 地址。
databasePort: 所配置数据库的端口。
databaseName: 所配置数据库的名称。
databasePassword: 所配置数据库的密码。
maxRenameLength: 宠物名称允许的最大字符数是多少?
swapToLegacyWhenNeeded: 如果对话框不受支持,是否自动为 /pprename 使用经典重命名功能?
mythicMobsPatch: 与 MythicMobs 插件的刷怪蛋相关的兼容性补丁。
whitelistedTypes: 允许被拾取的实体类型,位于 settings.yml 设置文件中。
消息也可以在 PetPickup/lang.yml 中进行自定义。
该插件尊重宠物的所有权以及 WorldGuard 区域(前提是已安装)。
在我的 YouTube 频道上有演示:
This plugin that I made over the weekend that allows users to pickup their pets in a portable spawn egg, which allows them to transfer their pets over potentially long distances, or even different dimensions, instead of transporting them manually; let's all be honest here, it's much easier to use a command and to right click your pet, and to place it somewhere else, than building a giant ice highway and hoping your pet doesn't die along the way.
Important detail: Make sure you use /pp to toggle on pet pickup mode, otherwise it won't work! OPs have the permission by default, but normal users will need a specific permission node, check below, I do recommend using a plugin such as LuckPerms to get the permission nodes working.
Notice: If you're having config issues between updates, for now we recommend deleting the settings.yml, so the plugin can re-generate it on start up
Permission nodes:
pp.toggle - Toggle Pet Pickup mode on or off.
pp.bypass.worldguard - Bypass WorldGuard restrictions.
pp.bypass.whitelist - Bypass the entity type whitelist.
pp.bypass.pickup - Bypass pet ownership protections.
pp.rename - Use the /pprename command.
pp.renamelegacy - Use the /pprenamelegacy command.
Config options:
databaseType: The database type should be used to store the picked up entities.
databaseIP: The IP address to the configured database.
databasePort: The port to the configured database.
databaseName: The name of the configured database.
databasePassword: The password to the configured database.
maxRenameLength: What is the maximum allowed character limit that a pet's name can be set to?
swapToLegacyWhenNeeded: Should the legacy rename functionality be used automatically for /pprename if dialogs aren't supported?
mythicMobsPatch: Patches for compatibility related to the spawn eggs of the MythicMobs plugin.
whitelistedTypes: The entity types that are allowed to be picked up, under settings.yml
Messages can also be customised under PetPickup/lang.yml
The plugin respects ownership of pets, as well as WorldGuard regions, provided that it is installed.
Demonstrated on my YouTube channel:
评论 0
登录后参与评分
还没有评论,来抢沙发吧