mirror of
https://github.com/aikar/commands.git
synced 2026-06-21 14:30:37 +00:00
restore .setPlayerLocale API on bukkit manager
This was public, so cant remove it
This commit is contained in:
@@ -25,6 +25,7 @@ package co.aikar.commands;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.spongepowered.api.command.CommandSource;
|
||||
import org.spongepowered.api.command.source.ConsoleSource;
|
||||
import org.spongepowered.api.entity.living.player.Player;
|
||||
import org.spongepowered.api.text.serializer.TextSerializers;
|
||||
import org.spongepowered.api.util.Identifiable;
|
||||
@@ -55,7 +56,7 @@ public class SpongeCommandIssuer implements CommandIssuer {
|
||||
|
||||
@Override
|
||||
public @NotNull UUID getUniqueId() {
|
||||
if (isPlayer()) {
|
||||
if (this.source instanceof Identifiable) {
|
||||
return ((Identifiable) source).getUniqueId();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user