Skip to content

Commit

Permalink
fix: fix PlayerWrapper error
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed Aug 8, 2022
1 parent 7305d5c commit 32af376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")));

Expand Down

0 comments on commit 32af376

Please sign in to comment.