File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
paper/src/main/java/com/badbones69/crazyauctions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments