ivan u never commit

This commit is contained in:
Super_
2020-01-12 20:56:31 -05:00
parent 1ee1cbca2b
commit 7940313dd1
5 changed files with 61 additions and 26 deletions

View File

@ -100,7 +100,7 @@ public class Command_shop extends FreedomCommand
case "buy":
{
ShopItem item = ShopItem.findItem(args[1]);
if (item == null)
if (item == null || !item.isPurchaseable())
{
msg("Invalid item: " + item);
return true;
@ -133,7 +133,7 @@ public class Command_shop extends FreedomCommand
case "get":
{
ShopItem item = ShopItem.findItem(args[1]);
if (item == null)
if (item == null || !item.isPurchaseable())
{
msg("Invalid item: " + item);
return true;