SognoDiGhast - by Kaeternn
一款简单且可配置的插件,用于提升普通和开心 Ghast 的飞行速度。
安装
本插件需要 Paper。
安装方法:将此插件 JAR 文件放入服务器的 /plugins 文件夹中。
更新
要更新此插件,请将更新后的 JAR 文件放入服务器的 /plugins 文件夹中,删除旧版本,启动服务器以使插件自动更新配置文件。然后你可以在新配置文件中修改设置,并使用 /sdg reload 命令重新加载。
请注意,当配置文件更新时,插件不会覆盖你已有的设置。
配置
常规设置
debug,在控制台中添加调试消息;除非必要,否则不建议启用。
only_happy_ghast,将更快的飞行速度限制为仅“开心”状态的 Ghast。
only_when_ridden,将更快的飞行速度限制为仅被骑乘的“开心” Ghast;如果设为 true,则会覆盖 only_happy_ghast 的设置。
speed_multiplier,Ghast 的飞行速度将乘以该值。
维度设置
请注意,你不应该在此处添加或删除维度条目;如果你使用自定义世界或自定义维度,请使用下面的世界设置。另外请注意,Ghast 的高度比骑乘它的玩家高出约 3 个方块,因此如果你设置为 150,Ghast 很可能在高度 153 处开始加速。
如果你想禁用其中某一项限制,请将其设置为 infinity(无穷大)。
min,生效的最小高度。
max,生效的最大高度。
世界设置
这些设置使用世界名称而非维度;它们也会覆盖此处列出的世界的维度设置。
如果你想禁用其中某一项限制,请将其设置为 infinity(无穷大)。
min,生效的最小高度。
max,生效的最大高度。
用法
让你的玩家骑着速度更快的 Ghast 自由飞翔吧。
还有三个管理员命令:
/sdg version 显示服务器上安装的版本。
/sdg reload 重新加载配置文件,以便在不重启服务器的情况下更新数值。
/sdg menu
general 打开常规配置 UI。
dimension [overworld|nether|end] 打开指定维度的配置 UI。
world [world name] 打开指定世界的配置 UI。
权限
sognodighast.admin 授予对 /sdg 命令的访问权限。
获取帮助
需要帮助或有建议?加入我的 Discord!
信息
代码效率
我仍在学习 JAVA 和 Minecraft 插件开发,因此我的代码有时可能效率不高。如果你在代码中发现任何问题,欢迎随时向我指出。
生成式 AI
我只用它来获取关于我不知道如何实现的功能的信息,或寻求解决我无法解决的问题的建议。
我没有直接使用 AI 生成的代码、文档或文本。
SognoDiGhast - by Kaeternn
A simple yet configurable plugin to boost regular and happy ghasts speed.
Installation
This plugin requires Paper.
To install, place this plugin JAR in your server's /plugins folder.
Update
To update this plugin, place the updated JAR in your server's /plugins folder, delete the old one, launch you server so the plugin update the configuration as well. Then you can change settings in the new configuration and use /sdg reload.
Note that the plugin will not overwrite your settings when the configuration is updated.
Configuration
General settings
debug, add debug messages in console, I don't recommend enabling it if not necessary.
only_happy_ghast, limit the faster flying speed to happy ghasts.
only_when_ridden, limit the faster flying speed to ridden happy ghasts, if true it overwrite only_happy_ghast.
speed_multiplier, ghast's flying speed will be multiplied by this value.
Dimensions settings
Please note that you should not add or remove dimension entries here, if you use custom worlds or custom dimensions please use the worlds settings below. Also note that a ghast is ~3 blocks higher than the player who rides it, so if you set 150, the ghast will likely become faster at 153.
If you want to disable one of these limits, set it to infinity.
min, minimum height at which the multiplier takes effect.
max, maximum height at which the multiplier takes effect.
Worlds settings
These settings use world names instead of dimensions; they also override the dimension settings for worlds listed here.
If you want to disable one of these limit, set it to infinity.
min, minimum height at which the multiplier takes effect.
max, maximum height at which the multiplier takes effect.
Usage
Just let your players fly away with their faster ghasts.
There are three admin commands too :
/sdg version tells you which version is installed on your server.
/sdg reload reload the configuration if you want to update values without restarting the server.
/sdg menu
general open the general configuration UI.
dimension [overworld|nether|end] open the specified dimension configuration UI.
world [world name] open the specified world configuration UI.
Permissions
sognodighast.admin give access to /sdg command.
Getting help
Need help or want to make a suggestion ? Join my Discord !
Information
Code efficiency
I'm still learning JAVA and Minecraft plugin development, so my code can be inefficient sometimes, if you spot a problem in my code please feel free to explain it to me.
Generative AI
I used it only to get information about things I didn't know how to implement or for advice on resolving problems I couldn't solve.
I didn't directly use AI‑generated code, documentation, or text.
评论 0
登录后参与评分
还没有评论,来抢沙发吧