restore .setPlayerLocale API on bukkit manager

This was public, so cant remove it
This commit is contained in:
Aikar
2018-02-28 18:03:58 -05:00
parent edf7ecc020
commit 82390e5443
3 changed files with 7 additions and 2 deletions
@@ -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();
}