Update CoopCommand.java
To get the difference between "AhmHkn" and "AhmHkn1" need to use "getPlayerExact"
This commit is contained in:
parent
bd848cc0b3
commit
c951cf924b
|
@ -51,7 +51,7 @@ public class CoopCommand extends SubCommand {
|
|||
|| (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;
|
||||
|
|
Loading…
Reference in New Issue