Skip to content

Commit

Permalink
Update TpllCommand.java (#19)
Browse files Browse the repository at this point in the history
fixes bug when using decimal degree coordinate format
  • Loading branch information
Andi28An authored Jan 7, 2024
1 parent 230a315 commit 4e18bc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command

// detect if command starts with @ or with a player name

if ((args[0].startsWith("@") || !isDouble(args[0].replace(",", ""))) && player.hasPermission("t+-.forcetpll")) {
if ((args[0].startsWith("@") || !isDouble(args[0].replace(",", "").replace("°", ""))) && player.hasPermission("t+-.forcetpll")) {
if (args[0].equals("@a")) {
StringBuilder playerList = new StringBuilder();
Terraplusminus.instance.getServer().getOnlinePlayers().forEach(p -> {
Expand Down

0 comments on commit 4e18bc6

Please sign in to comment.