Permalink
Browse files

Fix for /sell throwing error when don't have the item

  • Loading branch information...
1 parent 1bdff41 commit 7f1d8b83e00b5e248124a3fa7c2d2d01306e5bd2 @Zamirathe Zamirathe committed May 30, 2015
Showing with 4 additions and 3 deletions.
  1. +2 −2 UconomyBasicShop/Properties/AssemblyInfo.cs
  2. +2 −1 UconomyBasicShop/UconomyBasicShop.cs
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.2.2.2")]
-[assembly: AssemblyFileVersion("1.2.2.2")]
+[assembly: AssemblyVersion("1.2.2.3")]
+[assembly: AssemblyFileVersion("1.2.2.3")]
@@ -4,6 +4,7 @@
using Rocket.Unturned;
using Rocket.Unturned.Player;
using Rocket.Unturned.Plugins;
+using Rocket.Unturned.Logging;
using SDG;
using UnityEngine;
using unturned.ROCKS.Uconomy;
@@ -484,7 +485,7 @@ public void Sell(RocketPlayer playerid, string[] components)
// Get how many they have
if (playerid.Inventory.has(id) == null)
{
- message = UconomyBasicShop.Instance.Translate("no_have_item_sell", new object[] {name});
+ message = UconomyBasicShop.Instance.Translate("not_have_item_sell", new object[] {name});
RocketChat.Say(playerid, message);
return;
}

0 comments on commit 7f1d8b8

Please sign in to comment.