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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user