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:
parent
afdedee1c4
commit
48393d60c7
4 changed files with 54 additions and 54 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue