Skip to content

Commit

Permalink
Updated config defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmyMySherbet committed May 12, 2022
1 parent 4378dcf commit d7bded4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SherbetVaults/Commands/VaultCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override async UniTask Execute(CommandContext context)
{
var targetVault = context.Arguments.Get(0, defaultValue: string.Empty, paramName: "Vault Name");

var vaultConfig = Plugin.GetVaultConfig(targetVault);
var vaultConfig = Plugin.GetVaultConfig(targetVault, context.LDMPlayer);

if (vaultConfig == null)
{
Expand Down
7 changes: 5 additions & 2 deletions SherbetVaults/Models/Config/SherbetVaultsConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ public class SherbetVaultsConfig : IRocketPluginConfiguration
public List<VaultConfig> Vaults = new();

public bool CacheVaults = true;
public bool LargestVaultIsDefault = true;
public bool LargestVaultIsDefault = false;

public void LoadDefaults()
{
DatabaseSettings = DatabaseSettings.Default;
Vaults = new List<VaultConfig>() { new VaultConfig() { VaultID = "default" } };
Vaults = new List<VaultConfig>() {
new VaultConfig() { VaultID = "default", Height = 8, Width = 8 },
new VaultConfig() { VaultID = "vip", Height = 12, Width = 12 }
};
}
}
}

0 comments on commit d7bded4

Please sign in to comment.