Skip to content

Commit

Permalink
Update CoopCommand.java
Browse files Browse the repository at this point in the history
To get the difference between "AhmHkn" and "AhmHkn1" need to use "getPlayerExact"
  • Loading branch information
AhmHkn0 authored and SpraxDev committed Mar 27, 2024
1 parent bd848cc commit c951cf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void onCommandByPlayer(Player player, String[] args) {
|| (island.hasRole(IslandRole.OPERATOR, player.getUniqueId())
&& permissionManager.hasPermission(island, "CoopPlayers", IslandRole.OPERATOR))) {
if (args.length == 1 || args.length == 2) {
Player targetPlayer = Bukkit.getServer().getPlayer(args[0]);
Player targetPlayer = Bukkit.getServer().getPlayerExact(args[0]);

UUID targetPlayerUUID;
String targetPlayerName;
Expand Down

0 comments on commit c951cf9

Please sign in to comment.