From 4332ea9b738a2411a6f46e58e48c88cc49da0504 Mon Sep 17 00:00:00 2001 From: ricky Date: Mon, 20 Jun 2011 10:42:29 +1000 Subject: [PATCH] Issue #102 Fixed /item only using the first argument instead of joining all string for people who don't put quotes around item name with spaces --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index e8918671..33d9f7da 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1058,7 +1058,7 @@ namespace TShockAPI return; } - var items = Tools.GetItemByIdOrName(args.Parameters[0]); + var items = Tools.GetItemByIdOrName(String.Join(" ", args.Parameters)); if (items.Count == 0) { args.Player.SendMessage("Invalid item type!", Color.Red);