From 6fdc04367e19eafc071341d6fb23fffab621f5b1 Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Tue, 24 Oct 2017 17:35:08 -0400 Subject: [PATCH] Add UtilPlayerBase.messageSearchOnlineResult --- .../src/mineplex/core/common/util/UtilPlayerBase.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Plugins/Mineplex.Core.Common.Base/src/mineplex/core/common/util/UtilPlayerBase.java b/Plugins/Mineplex.Core.Common.Base/src/mineplex/core/common/util/UtilPlayerBase.java index 9b2d2b5df..9d684466c 100644 --- a/Plugins/Mineplex.Core.Common.Base/src/mineplex/core/common/util/UtilPlayerBase.java +++ b/Plugins/Mineplex.Core.Common.Base/src/mineplex/core/common/util/UtilPlayerBase.java @@ -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 matchList = new LinkedList(); @@ -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) {