MLGPvP 是一个无厘头的游戏模式,主要目标是在进行 MLG 水桶(或梯子、藤蔓等任何可用于 MLG 的方块)时不失误。
玩家会获得具有巨大击退效果的爆炸弓和弩,能将玩家发射至高达 200 格的高空。然后他们必须尝试通过 MLG 的方式安全降落,并且不能死亡!
本插件需要 PaperMC。
插件使用方法
下载并将插件放入服务器的 plugins 目录后,即可开始使用。
所有与插件相关的操作均通过 /mlgpvp 命令控制。运行此命令需要管理员权限(OP)。
可以使用 "mlgpvp start" 开始比赛,使用 "mlgpvp cancel" 停止比赛。同一时间只能有一场比赛处于活动状态。比赛将在你执行命令的位置开始,因此你可以选择一个合适的地点进行游玩。
当比赛开始时,所有在线服务器玩家都会作为参与者加入比赛。在比赛进行中加入服务器的玩家将被设置为观察者。
修改设置
该插件提供了更改游戏设置的方法。虽然理论上可以在比赛过程中修改设置,但大多数设置只有在比赛开始前修改才会生效。
可以使用 "mlgpvp setting" 命令来更改设置。
输入 "mlgpvp setting" 会将插件的所有设置显示在执行者的聊天窗口中。
可以通过输入 "mlgpvp setting <setting_name>" 预览单个设置的值。
你可以通过输入 mlgpvp setting "<setting_name> <setting_value>" 来更改设置。Tab 自动补全会建议该设置的默认值,但你也可以填入任意你想要的值。注意,对于数值类型,值会被限制在一个范围内。
你可以使用 "mlgpvp reset_settings" 将所有设置重置为默认值。
管理完整配置
逐个更改设置可能既漫长又繁琐,如果你找到了一组喜欢的设置组合,每次重启服务器都要重新配置插件就会很麻烦。为了解决这个问题,引入了配置文件的概念。一个配置文件只是保存了插件设置的快照。你可以使用本插件加载、保存和删除配置文件。
要将当前设置保存到配置文件中,请输入 "mlgpvp config save "<config_name>""。
要加载配置文件,请输入 "mlgpvp config load "<config_name>""。
同样,要删除配置文件,只需输入 "mlgpvp config delete "<config_name>""。
要列出可用的配置文件,请使用 "mlgpvp config list"。
插件自带了一些内置配置文件供你使用。这些内置配置文件无法删除,你也无法保存与内置配置文件同名的自定义配置文件。
配置文件保存在 <server_directory>/plugins/MLGPvP/configs/<config_name>.json 中。由于它们只是 JSON 文件,你可以手动创建和修改配置文件,但如果不小心可能会损坏它们,因此我建议不要这样做。如果你确实决定手动篡改配置文件,有一个 "mlgpvp config refresh" 命令可以刷新配置文件列表(例如,如果你手动添加了一个配置文件,在不输入此命令之前它不会显示出来)。
注意
这个插件是由一个白痴编写的,所以很可能存在 bug。在测试期间没有发现重大问题,但如果你发现了任何问题,请不要害怕在 GitHub 上提交 issue,我会尽快修复!
MLGPvP is a dumb gamemode where the main goal is to not fail any MLG water buckets (or ladders, vines, anything else you can MLG on).
The players are given explosive bows and crossbows which deal massive knockback, launching the players up to 200 blocks in the air. They then have to try to MLG their way down and not die!
This plugin requires PaperMC.
Plugin usage.
After downloading and placing the plugin into the server's plugin directory, you can start using it.
All plugin related things are controlled with the /mlgpvp command. Admin privileges (OP) are required to run this command.
Matches can be started with "mlgpvp start" and stopped with "mlgpvp cancel". Only 1 match may be active at a time. Matches will start in the location where you execute the command, so you can pick a nice spot to play.
When a match is started, all online server players are placed into it as participants. Players who join the server while a match is active are set as spectators.
Changing the settings.
The plugin offers ways to change the settings of a game. While they technically can be changed mid-match, most of them will only have an effect if they are changed before you start the match.
Settings can be changed with the "mlgpvp setting" command.
Typing "mlgpvp setting" will display all of your plugin's settings into the executor's chat.
Individual setting values can be previewed by typing "mlgpvp setting <setting_name>"
You can change a setting by typing mlgpvp setting "<setting_name> <setting_value>". The tab auto-complete will suggest the default value for this setting, but you can put any value you want in there. Note that for numbers, the values will be clamped to a range.
You can use "mlgpvp reset_settings" to reset all settings to their defaults.
Managing whole configurations.
Changing settings individually can be long and tedious, and if you find a setting combination you like, it'd be annoying to have to reconfigure the plugin each time you restart the server. To solve this, there exist configurations. A config simply holds a snapshot of the plugin's settings. You can load, save and delete configurations with this plugin.
To save your current settings into a confugration, type "mlgpvp config save "<config_name>"".
To load a configuration, type "mlgpvp config load "<config_name>"".
Similarly, to delete a config, just type "mlgpvp config delete "<config_name>"".
To list your available configurations, use "mlgpvp config list".
The plugin comes with a few built-in configurations which you can use. Those cannot be deleted, and you cannot save a custom config with the same name as a built-in config.
The configurations are saved in <server_directory>/plugins/MLGPvP/configs/<config_name>.json. You can manually create and modify the configs since they are just JSON files, but you risk corrupting them if you're not careful, so I advise to not do that. If you do deicde to manually tamper with configs, there exists a "mlgpvp config refresh" command which refreshes the list of configurations (for instance, if you add a config manually, it won't show up until you type this command).
Note
This plugin was coded by an idiot, so it likely has bugs. Nothing major was found while testing, but if you find something, please don't be afraid to open an issue on github, I'll try to fix it as soon as I can!
评论 0
登录后参与评分
还没有评论,来抢沙发吧