From 8a3cc86780f6a1287065fa483b54e9b529fd7ae7 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Tue, 6 Oct 2015 01:33:00 +0800 Subject: [PATCH] fix MsgFlush Error... Signed-off-by: j502647092 --- src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java b/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java index 4d23faa..803b9e3 100644 --- a/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java +++ b/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java @@ -4,7 +4,6 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; import java.util.LinkedList; -import java.util.UUID; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -42,7 +41,7 @@ public class MsgUtil { */ public static boolean flush(final OfflinePlayer p) { // TODO Changed to UUID if (p != null && p.isOnline()) { - final UUID pName = p.getUniqueId(); + final String pName = p.getName(); final LinkedList msgs = player_messages.get(pName); if (msgs != null) { for (final String msg : msgs) {