mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Use getPlayerExact
This commit is contained in:
parent
8fa0f73a46
commit
6a69ec833f
@ -211,7 +211,7 @@ public final class CommandParse extends PlaceholderCommand {
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private OfflinePlayer resolvePlayer(@NotNull final String name) {
|
private OfflinePlayer resolvePlayer(@NotNull final String name) {
|
||||||
OfflinePlayer target = Bukkit.getPlayer(name);
|
OfflinePlayer target = Bukkit.getPlayerExact(name);
|
||||||
|
|
||||||
if (target == null) {
|
if (target == null) {
|
||||||
// Not the best option, but Spigot doesn't offer a good replacement (as usual)
|
// Not the best option, but Spigot doesn't offer a good replacement (as usual)
|
||||||
|
Loading…
Reference in New Issue
Block a user