Skip to content

Commit

Permalink
Added Spanish/Portugese translations as aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigawiz committed Nov 9, 2016
1 parent 4260d66 commit 429e367
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions CommandBalance.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
using System;
using System.Collections.Generic;
using Rocket.API;
using Rocket.API;
using Rocket.Core.Logging;
using Rocket.Unturned.Chat;
using Rocket.Core;
using Rocket.Unturned.Player;
using System;
using System.Collections.Generic;

namespace fr34kyn01535.Uconomy
{
public class CommandBalance : IRocketCommand
{
public string Name
{
get { return "balance"; }
}
public string Help
{
get { return "Shows the current balance"; }
}

public string Name
{
get { return "balance"; }
}

public AllowedCaller AllowedCaller
{
get
{
return AllowedCaller.Player;
return AllowedCaller.Both;
}
}

Expand All @@ -33,7 +34,7 @@ public string Syntax

public List<string> Aliases
{
get { return new List<string>(); }
get { return new List<string> { "saldo" }; }
}

public List<string> Permissions
Expand All @@ -44,7 +45,7 @@ public List<string> Permissions
}
}

public void Execute(IRocketPlayer caller,params string[] command)
public void Execute(IRocketPlayer caller, params string[] command)
{
decimal balance = Uconomy.Instance.Database.GetBalance(caller.Id);
UnturnedChat.Say(caller, Uconomy.Instance.Translations.Instance.Translate("command_balance_show", balance, Uconomy.Instance.Configuration.Instance.MoneyName));
Expand Down
2 changes: 1 addition & 1 deletion CommandPay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public string Syntax

public List<string> Aliases
{
get { return new List<string>(); }
get { return new List<string> { "pagar" }; }
}

public List<string> Permissions
Expand Down

0 comments on commit 429e367

Please sign in to comment.