mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Rename some Settings getters
This commit is contained in:
1 parent
29cf3f9ffc
commit
34fdb88d5c
22 files changed
+44
-44
No files matched your search
@@ -317,7 +317,7 @@ public class Settings {
|
||||
return stackPermissionLimits;
|
||||
}
|
||||
|
||||
public boolean isPermissionRestrictWarps() {
|
||||
public boolean doPermissionRestrictWarps() {
|
||||
return permissionRestrictWarps;
|
||||
}
|
||||
|
||||
@@ -341,19 +341,19 @@ public class Settings {
|
||||
return strictTpaHereRequests;
|
||||
}
|
||||
|
||||
public boolean isAllowUnicodeNames() {
|
||||
public boolean doAllowUnicodeNames() {
|
||||
return allowUnicodeNames;
|
||||
}
|
||||
|
||||
public boolean isAllowUnicodeDescriptions() {
|
||||
public boolean doAllowUnicodeDescriptions() {
|
||||
return allowUnicodeDescriptions;
|
||||
}
|
||||
|
||||
public boolean isBackCommandReturnByDeath() {
|
||||
public boolean doBackCommandReturnByDeath() {
|
||||
return backCommandReturnByDeath;
|
||||
}
|
||||
|
||||
public boolean isBackCommandSaveOnTeleportEvent() {
|
||||
public boolean doBackCommandSaveOnTeleportEvent() {
|
||||
return backCommandSaveOnTeleportEvent;
|
||||
}
|
||||
|
||||
@@ -365,18 +365,18 @@ public class Settings {
|
||||
return asynchronousTeleports;
|
||||
}
|
||||
|
||||
public boolean isPlaySoundEffects() {
|
||||
public boolean doPlaySoundEffects() {
|
||||
return playSoundEffects;
|
||||
}
|
||||
|
||||
public Optional<String> getSoundEffect(@NotNull SoundEffectAction action) {
|
||||
if (!isPlaySoundEffects()) {
|
||||
if (!doPlaySoundEffects()) {
|
||||
return Optional.empty();
|
||||
}
|
||||
return Optional.ofNullable(soundEffects.get(action.name().toLowerCase()));
|
||||
}
|
||||
|
||||
public boolean isCrossServer() {
|
||||
public boolean doCrossServer() {
|
||||
return crossServer;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user