Skip to content

Commit

Permalink
Fixed argsToString!
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcilore committed Apr 13, 2024
1 parent 3759d53 commit 6a39332
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/net/serble/estools/EsToolsCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,7 @@ public static String[] removeArgs(String[] args, int amount) {
}

public static String argsToString(String[] args, int skipAmount) {
StringBuilder output = new StringBuilder();

for (int i = skipAmount; i < args.length; i++) {
output.append(args[i]);
}

return output.toString();
return String.join(" ", removeArgs(args, skipAmount));
}

public static double parseCoordinate(String coord, double playerLoc) {
Expand Down

0 comments on commit 6a39332

Please sign in to comment.