Skip to content

Commit

Permalink
Fix /VaultAlias messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmyMySherbet committed Dec 4, 2022
1 parent 0a492aa commit 755d0dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion SherbetVaults/Commands/VaultAliasCommand.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Transactions;
using Cysharp.Threading.Tasks;
using Rocket.API;
using RocketExtensions.Models;
Expand Down Expand Up @@ -59,7 +60,9 @@ public override async UniTask Execute(CommandContext context)

await Plugin.Database.Aliases.SetAliasAsync(context.PlayerID, vaultID, vaultAlias);

await context.ReplyKeyAsync("VaultAliases_Set", string.Join(", ", Aliases), vaultConfig.VaultID);
var newAliases = currentAliases.Append(vaultAlias);

await context.ReplyKeyAsync("VaultAliases_Set", string.Join(", ", newAliases), vaultConfig.VaultID);
return;

case "remove":
Expand Down
6 changes: 3 additions & 3 deletions SherbetVaults/Models/Config/Translations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public partial class SherbetVaultsPlugin
{ "Vaults_List", "[color=green]Your vaults: {0}[/color]" },
{ "WipeVault_Wiped", "[color=green]Wiped {0} items from {1}'s vault {2}[/color]" },
{ "VaultAliases_MaxReached", "[color=red]Max vault aliases reached[/color]" },
{ "VaultAliases_Set", "[color=cyan]Vault alias created: {0}{1}[/color]" },
{ "VaultAliases_Removed", "[color=cyan]Removed alias {0}[/color]" },
{ "VaultAliases_Set", "[color=#00ffff]Vault alias created: {0} -> {1}[/color]" },
{ "VaultAliases_Removed", "[color=#00ffff]Removed alias {0}[/color]" },
{ "VaultAliases_Remove_NotFound", "[color=cyan]No alias by that name found[/color]" },
{ "VaultAliases_List", "Aliases: {1}" },
{ "VaultAliases_List", "[color=#00ffff]Aliases: {1}[/color]" },
{ "Restrictions_Blacklisted", "[color=red]You cannot store that item in your vault[/color]" },
{ "VaultAliases_Disabled", "[color=red]Vault aliases are disabled on this server[/color]" }
};
Expand Down

0 comments on commit 755d0dd

Please sign in to comment.