refactor: don't trim the string again since we already did it

This commit is contained in:
ChomeNS
2025-05-09 09:42:07 +07:00
parent 4be485df0f
commit 56c7aa5493
2 changed files with 2 additions and 3 deletions

View File

@@ -1 +1 @@
3173
3176

View File

@@ -129,7 +129,7 @@ public class PlayersPlugin implements Listener {
if (!string.startsWith("- IP Address: ")) return output;
string = string.trim().substring("- IP Address: ".length());
string = string.substring("- IP Address: ".length());
if (string.startsWith("/")) string = string.substring(1);
outputFuture.complete(string);
@@ -381,7 +381,6 @@ public class PlayersPlugin implements Listener {
}
} else {
pendingLeftPlayers.add(target);
check(target);
}
}