9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-25 01:29:19 +00:00

Sync lock: Cancel item frame interaction, add command blacklist (#84)

Co-authored-by: William <will27528@gmail.com>
This commit is contained in:
evlad
2023-02-12 19:08:46 +01:00
committed by GitHub
parent f322d31b03
commit 2d1d8f1ab6
2 changed files with 25 additions and 0 deletions

View File

@@ -5,7 +5,9 @@ import net.william278.annotaml.YamlFile;
import net.william278.annotaml.YamlKey;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
@@ -120,6 +122,9 @@ public class Settings {
@YamlKey("synchronization.features")
public Map<String, Boolean> synchronizationFeatures = SynchronizationFeature.getDefaults();
@YamlKey("synchronization.blacklisted_commands_while_locked")
public List<String> blacklistedCommandsWhileLocked = new ArrayList<>();
public boolean getSynchronizationFeature(@NotNull SynchronizationFeature feature) {
return synchronizationFeatures.getOrDefault(feature.name().toLowerCase(), feature.enabledByDefault);
}