Add UtilPlayerBase.messageSearchOnlineResult
This commit is contained in:
parent
88635135cc
commit
6fdc04367e
@ -52,6 +52,10 @@ public class UtilPlayerBase
|
|||||||
((Player) client).sendMessage(message);
|
((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)
|
public static Player searchOnline(Player caller, String player, boolean inform)
|
||||||
{
|
{
|
||||||
LinkedList<Player> matchList = new LinkedList<Player>();
|
LinkedList<Player> matchList = new LinkedList<Player>();
|
||||||
@ -72,9 +76,7 @@ public class UtilPlayerBase
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
// Inform
|
// Inform
|
||||||
message(caller,
|
messageSearchOnlineResult(caller, player, matchList.size());
|
||||||
F.main("Online Player Search", "" + C.mCount + matchList.size() + C.mBody + " matches for [" + C.mElem
|
|
||||||
+ player + C.mBody + "]."));
|
|
||||||
|
|
||||||
if (matchList.size() > 0)
|
if (matchList.size() > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user