1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

fix MsgFlush Error...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-10-06 01:33:00 +08:00
parent af5e41a8a3
commit 8a3cc86780

View File

@ -4,7 +4,6 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.UUID;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
@ -42,7 +41,7 @@ public class MsgUtil {
*/ */
public static boolean flush(final OfflinePlayer p) { // TODO Changed to UUID public static boolean flush(final OfflinePlayer p) { // TODO Changed to UUID
if (p != null && p.isOnline()) { if (p != null && p.isOnline()) {
final UUID pName = p.getUniqueId(); final String pName = p.getName();
final LinkedList<String> msgs = player_messages.get(pName); final LinkedList<String> msgs = player_messages.get(pName);
if (msgs != null) { if (msgs != null) {
for (final String msg : msgs) { for (final String msg : msgs) {