Skip to content

Commit 9f7d31e

Browse files
committed
Fix Cancel Message
Fixed players not being notified when they were on the server that their item was either cancelled or has expired.
1 parent de22091 commit 9f7d31e

File tree

1 file changed

+4
-4
lines changed
  • paper/src/main/java/com/badbones69/crazyauctions

1 file changed

+4
-4
lines changed

paper/src/main/java/com/badbones69/crazyauctions/Methods.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public static boolean isLong(String s) {
7070
return true;
7171
}
7272

73-
public static Player getPlayer(String name) {
73+
public static Player getPlayer(String uuid) {
7474
try {
75-
return plugin.getServer().getPlayer(UUID.fromString(name));
75+
return plugin.getServer().getPlayer(UUID.fromString(uuid));
7676
} catch (Exception e) {
7777
return null;
7878
}
@@ -94,9 +94,9 @@ public static boolean isUUID(String uuid) {
9494
return UUID_PATTERN.matcher(uuid).find();
9595
}
9696

97-
public static boolean isOnline(String name) {
97+
public static boolean isOnline(String uuid) {
9898
for (Player player : plugin.getServer().getOnlinePlayers()) {
99-
if (player.getName().equalsIgnoreCase(name)) {
99+
if (player.getUniqueId().toString().equals(uuid)) {
100100
return true;
101101
}
102102
}

0 commit comments

Comments
 (0)