Add UtilPlayerBase.messageSearchOnlineResult

This commit is contained in:
ArcticZeroo 2017-10-24 17:35:08 -04:00 committed by Alexander Meech
parent 88635135cc
commit 6fdc04367e
1 changed files with 5 additions and 3 deletions

View File

@ -52,6 +52,10 @@ public class UtilPlayerBase
((Player) client).sendMessage(message);
}
public static void messageSearchOnlineResult(Player caller, String player, int matchCount) {
message(caller, F.main("Online Player Search", "" + C.mCount + matchCount + C.mBody + " matches for [" + C.mElem + player + C.mBody + "]."));
}
public static Player searchOnline(Player caller, String player, boolean inform)
{
LinkedList<Player> matchList = new LinkedList<Player>();
@ -72,9 +76,7 @@ public class UtilPlayerBase
return null;
// Inform
message(caller,
F.main("Online Player Search", "" + C.mCount + matchList.size() + C.mBody + " matches for [" + C.mElem
+ player + C.mBody + "]."));
messageSearchOnlineResult(caller, player, matchList.size());
if (matchList.size() > 0)
{