Skip to content

Commit

Permalink
Fix player add commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed Sep 14, 2024
1 parent c8d6b05 commit 5c50f3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/de/cuuky/varo/command/varo/PlayerCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void onCommand(CommandSender sender, VaroPlayer vp, Command cmd, String l
continue;
}

new VaroPlayer(arg, lookup.toString());
new VaroPlayer(arg, lookup.getUuid().toString());
sender.sendMessage(Main.getPrefix() + Main.getColorCode() + arg + " §7wurde erfolgreich zu " + Main.getColorCode() + Main.getProjectName() + " §7hinzugefuegt!");
}
} else if (args[0].equalsIgnoreCase("respawn")) {
Expand Down
4 changes: 2 additions & 2 deletions src/de/cuuky/varo/command/varo/TeamCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void onCommand(CommandSender sender, VaroPlayer vp, Command cmd, String l
continue;
}

varoplayer = new VaroPlayer(arg, lookup.toString());
varoplayer = new VaroPlayer(arg, lookup.getUuid().toString());
}

team.addMember(varoplayer);
Expand Down Expand Up @@ -184,7 +184,7 @@ public void onCommand(CommandSender sender, VaroPlayer vp, Command cmd, String l
return;
}

varoplayer = new VaroPlayer(args[2], lookup.toString());
varoplayer = new VaroPlayer(args[2], lookup.getUuid().toString());
}

if (varoplayer.getTeam() != null) {
Expand Down

0 comments on commit 5c50f3b

Please sign in to comment.