From 6ed59c58419f1ac23ba4c1dac684a9f33824c0a3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 16 Apr 2019 12:06:43 +0200 Subject: [PATCH] Bugfix WarkingUserOverUUID --- src/de/warking/hunjy/MySQL/WarkingUser.java | 2 +- src/de/warking/hunjy/PlayerManager/events/PlayerJoin.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/de/warking/hunjy/MySQL/WarkingUser.java b/src/de/warking/hunjy/MySQL/WarkingUser.java index 0c0c319..4baf04c 100644 --- a/src/de/warking/hunjy/MySQL/WarkingUser.java +++ b/src/de/warking/hunjy/MySQL/WarkingUser.java @@ -72,7 +72,7 @@ public class WarkingUser { public static WarkingUser get(UUID uuid){ for(WarkingUser user : allUsers) - if(user.UserName.equals(uuid)) + if(user.UUID.equals(uuid)) return user; WarkingUser offline = new WarkingUser(uuid); return offline; diff --git a/src/de/warking/hunjy/PlayerManager/events/PlayerJoin.java b/src/de/warking/hunjy/PlayerManager/events/PlayerJoin.java index 2714643..d73f8b2 100644 --- a/src/de/warking/hunjy/PlayerManager/events/PlayerJoin.java +++ b/src/de/warking/hunjy/PlayerManager/events/PlayerJoin.java @@ -1,6 +1,5 @@ package de.warking.hunjy.PlayerManager.events; -import de.warking.hunjy.MySQL.UserGroup; import de.warking.hunjy.MySQL.WarkingUser; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler;