mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 14:38:53 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user