Skip to content

Commit

Permalink
GH-757 Resolve case sensitivity issue in command execution for Minecr…
Browse files Browse the repository at this point in the history
…aft nicknames (#758)

* GH-757 Resolve case sensitivity issue in command execution for Minecraft nicknames

Signed-off-by: Martin <[email protected]>

* Update eternalcore-core/src/main/java/com/eternalcode/core/bridge/litecommand/argument/PlayerArgument.java

Co-authored-by: DMK <[email protected]>

---------

Signed-off-by: Martin <[email protected]>
Co-authored-by: DMK <[email protected]>
  • Loading branch information
vLuckyyy and imDMK authored Apr 20, 2024
1 parent 1e9858b commit b0ce657
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.bukkit.command.CommandSender;
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player;
import java.util.Objects;

@LiteArgument(type = Player.class)
public class PlayerArgument extends AbstractViewerArgument<Player> {
Expand All @@ -28,7 +29,7 @@ public PlayerArgument(ViewerService viewerService, TranslationManager translatio

@Override
public ParseResult<Player> parse(Invocation<CommandSender> invocation, String argument, Translation translation) {
Player target = this.server.getPlayer(argument);
Player target = this.server.getPlayerExact(argument);

if (target == null) {
return ParseResult.failure(translation.argument().offlinePlayer());
Expand Down

0 comments on commit b0ce657

Please sign in to comment.