mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
refactor: Move to ConfigLib, use lombok (#563)
* refactor: move to configlib, adjust config structure * fix: huskclaims typos * fix: don't generate `server.yml` in local mode * fix: NPE with server name
This commit is contained in:
1 parent
c55631a30d
commit
1723aa44fc
84 files changed
+4334
-4832
No files matched your search
@@ -137,7 +137,7 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
|
||||
.ifPresent(executor::sendMessage);
|
||||
return Optional.empty();
|
||||
}
|
||||
if (executor instanceof OnlineUser user && plugin.getSettings().doPermissionRestrictWarps()
|
||||
if (executor instanceof OnlineUser user && plugin.getSettings().getGeneral().isPermissionRestrictWarps()
|
||||
&& !user.hasPermission(Warp.getWildcardPermission())
|
||||
&& !user.hasPermission(Warp.getPermission(warpName))) {
|
||||
plugin.getLocales().getLocale("error_warp_invalid", warpName)
|
||||
|
||||
Reference in new issue
Block a user