NoJumpBreakCrops
这是一个非常简单的 Minecraft 插件,用于防止未经授权的玩家通过踩踏破坏作物。该插件没有其他任何用途!
已在 Paper 1.16、1.17、1.18、1.19、1.20 上测试。
它应该能在 1.16+ 版本的 Bukkit 和 Spigot 上运行。
我为一个私人服务器制作了此插件,并决定分享它,因为也许有些人会觉得它有用。
我可能会添加一些功能,也可能不会。
代码的组织方式可能不够完美,但我认为对于它的功能来说已经足够了。
使用说明
如果你只想安装此插件以防止非管理员(non-op)玩家通过踩踏破坏作物,只需将插件放入 plugins 文件夹即可。就这么简单。
如果你也希望管理员(operators)受到插件的影响,请将 affectop 属性设置为 true。
你可以使用下面提到的权限来进一步配置。
命令
/njbc:显示插件配置。
/njbc <enable | disable>:启用或禁用插件。
/njbc affectop <true | false>:如果设置为 true,默认情况下管理员(除非显式拥有 njbc.breakcrops 权限且设为 true)也将受到插件影响。
权限
默认情况下,所有管理员(op)都可以通过踩踏破坏作物。
配置文件
affectop (boolean):如果管理员受插件影响,则为 true。
enabled (boolean):如果插件已启用,则为 true。
NoJumpBreakCrops
This is a very simple Minecraft plugin which prevent unauthorized players
to break crops by jumping on them. This plugin does not have any other purpose !
Tested with Paper 1.16, 1.17, 1.18, 1.19, 1.20.
It should work with Bukkit, Spigot in 1.16+.
I made this plugin for a private server and I decided to share
it because maybe some people will find it useful.
I may or may not add some features.
The code could be better organized, but I think it's fine for what it does.
Usage Infos
If you just want to install this plugin to prevent any non-op player from breaking crops
by jumping on them simply put the plugin in the plugins folder. That's all.
If you also want operators to be affected by the plugin set the affectop properties to true.
You can go further by using the permissions mentioned below.
Commands
/njbc : show the plugin configuration.
/njbc <enable | disable> : enable or disable the plugin.
/njbc affectop <true | false> : if set to true default operators
will be affected by the plugin if they do not have the permission
njbc.breakcrops explicitly set to true.
Permissions
By default, all op players can break crops by jumping on them.
-
njbc.breakcrops : if a player has this permission
set to true they will be able to break crops by jumping on them.
If this permission is explicitly set to false for a player (even Operators)
ll not be able to break crops by jumping on them. False by default for everyone
but operators bypass it if affectop is set to false.
-
njbc.admin : permission to use the /njbc command. False by default
for non-op players.
Config File
affectop (boolean) : true if operators are affected by the plugin.
enabled (boolean) : true if the plugin is enabled.
评论 0
登录后参与评分
还没有评论,来抢沙发吧