Add UtilPlayerBase.messageSearchOnlineResult
This commit is contained in:
parent
88635135cc
commit
6fdc04367e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue