mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-23 02:08:55 +00:00
fix MsgFlush Error...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
af5e41a8a3
commit
8a3cc86780
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user