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:
parent
c306686ad4
commit
4332ea9b73
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue