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

This commit is contained in:
ricky 2011-06-20 10:42:29 +10:00
parent c306686ad4
commit 4332ea9b73

View file

@ -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);