Add fabric builds for older MC versions & add checkstyle (#449)

* Remove instance getters, improve command logic, register APi

* Publish multiple fabric builds, enforce checkstyle

* Bump guava

* Bump to 4.4.2
This commit is contained in:
William authored and GitHub committed 2023-07-02 13:26:12 +01:00
1 parent 51baf196b3
commit c9f5262292
219 files changed
+8032 -1392

No files matched your search

@@ -41,8 +41,9 @@ public class SetSpawnCommand extends InGameCommand {
if (plugin.getSettings().doCrossServer() && plugin.getSettings().isGlobalSpawn()) {
final String warpName = plugin.getSettings().getGlobalSpawnName();
plugin.getManager().warps().createWarp(warpName, position, true);
plugin.getLocales().getRawLocale("spawn_warp_default_description")
.ifPresent(description -> plugin.getManager().warps().setWarpDescription(warpName, description));
plugin.getLocales().getRawLocale("spawn_warp_default_description").ifPresent(
description -> plugin.getManager().warps().setWarpDescription(warpName, description)
);
} else {
plugin.setServerSpawn(position);
}