From 00918fbdc1b7ef6b6b28f6aa7b6749dc3bc67997 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 30 Sep 2013 14:04:34 +0200 Subject: [PATCH] Change this back, getPlayerExact() is faster --- .../com/gmail/nossr50/commands/party/PartyInfoCommand.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyInfoCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PartyInfoCommand.java index e01427628..0ec4cbc14 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyInfoCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyInfoCommand.java @@ -1,7 +1,6 @@ package com.gmail.nossr50.commands.party; import org.bukkit.ChatColor; -import org.bukkit.OfflinePlayer; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; @@ -44,12 +43,12 @@ public class PartyInfoCommand implements CommandExecutor { StringBuilder memberList = new StringBuilder(); for (String memberName : playerParty.getMembers()) { - OfflinePlayer member = mcMMO.p.getServer().getOfflinePlayer(memberName); + Player member = mcMMO.p.getServer().getPlayerExact(memberName); if (playerParty.getLeader().equalsIgnoreCase(memberName)) { memberList.append(ChatColor.GOLD); } - else if (member.isOnline()) { + else if (member != null) { memberList.append(ChatColor.WHITE); } else {