diff --git a/src/main/java/com/github/hank9999/useblessingskin/bukkit/Commands/BukkitCommand.java b/src/main/java/com/github/hank9999/useblessingskin/bukkit/Commands/BukkitCommand.java index 97f0430..665b706 100644 --- a/src/main/java/com/github/hank9999/useblessingskin/bukkit/Commands/BukkitCommand.java +++ b/src/main/java/com/github/hank9999/useblessingskin/bukkit/Commands/BukkitCommand.java @@ -161,7 +161,7 @@ public void run() { skinsRestorerAPI.setSkin(commandSender.getName(), " " + commandSender.getName()); - skinsRestorerAPI.applySkin((PlayerWrapper) commandSender); + skinsRestorerAPI.applySkin(new PlayerWrapper(commandSender)); commandSender.sendMessage(ChatColor.AQUA + "[UBS] " + ChatColor.BLUE + getConfig.str("message.SetSkinSuccess")); diff --git a/src/main/java/com/github/hank9999/useblessingskin/bungee/Commands/BungeeCommand.java b/src/main/java/com/github/hank9999/useblessingskin/bungee/Commands/BungeeCommand.java index 79c2b7c..2c2a29d 100644 --- a/src/main/java/com/github/hank9999/useblessingskin/bungee/Commands/BungeeCommand.java +++ b/src/main/java/com/github/hank9999/useblessingskin/bungee/Commands/BungeeCommand.java @@ -174,7 +174,7 @@ public void execute(CommandSender commandSender, String[] strings) { skinsRestorerAPI.setSkin(commandSender.getName(), " " + commandSender.getName()); - skinsRestorerAPI.applySkin((PlayerWrapper) commandSender); + skinsRestorerAPI.applySkin(new PlayerWrapper(commandSender)); commandSender.sendMessage(new TextComponent(ChatColor.AQUA + "[UBS] " + ChatColor.BLUE + getConfig.str("message.SetSkinSuccess")));