Move SendMultipleMatchError to TSPlayer.

This is a great method for a player to have and not for the Utils class
to have.
This commit is contained in:
Lucas Nicodemus 2017-12-29 08:15:04 -07:00
parent afdedee1c4
commit 48393d60c7
4 changed files with 54 additions and 54 deletions

View file

@ -593,23 +593,6 @@ namespace TShockAPI
return "";
}
/// <summary>
/// Sends the player an error message stating that more than one match was found
/// appending a csv list of the matches.
/// </summary>
/// <param name="ply">Player to send the message to</param>
/// <param name="matches">An enumerable list with the matches</param>
public void SendMultipleMatchError(TSPlayer ply, IEnumerable<object> matches)
{
ply.SendErrorMessage("More than one match found: ");
var lines = PaginationTools.BuildLinesFromTerms(matches.ToArray());
lines.ForEach(ply.SendInfoMessage);
ply.SendErrorMessage("Use \"my query\" for items with spaces.");
}
/// <summary>
/// Checks if world has hit the max number of chests
/// </summary>