Fix an issue that causes client crash after receiving long text
This commit is contained in:
parent
a026c5809f
commit
58e2b85f59
1 changed files with 7 additions and 2 deletions
|
|
@ -869,8 +869,13 @@ namespace TShockAPI
|
||||||
/// <param name="matches">An enumerable list with the matches</param>
|
/// <param name="matches">An enumerable list with the matches</param>
|
||||||
public void SendMultipleMatchError(TSPlayer ply, IEnumerable<object> matches)
|
public void SendMultipleMatchError(TSPlayer ply, IEnumerable<object> matches)
|
||||||
{
|
{
|
||||||
ply.SendErrorMessage("More than one match found: {0}", string.Join(",", matches));
|
ply.SendErrorMessage("More than one match found: ");
|
||||||
ply.SendErrorMessage("Use \"my query\" for items with spaces");
|
|
||||||
|
var lines = PaginationTools.BuildLinesFromTerms(matches.ToArray());
|
||||||
|
|
||||||
|
lines.ForEach(ply.SendInfoMessage);
|
||||||
|
|
||||||
|
ply.SendErrorMessage("Use \"my query\" for items with spaces.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue