Skip to content

Commit

Permalink
Don't allow change skin command to run if no SkinsRestorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Feb 11, 2024
1 parent 64552de commit 8dc09a6
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -212,6 +212,11 @@ private static String handleStatus() {
}

private static String handleSetPlayerSkin(String params) {
if (!Minetrax.getPlugin().getHasSkinRestorer()) {
LoggingUtil.warning("Ignoring set-player-skin request as SkinRestorer is not enabled.");
return null;
}

String[] strings = params.split("½½½½");
String playerUuid = strings[0];
String commandType = strings[1];
Expand Down

0 comments on commit 8dc09a6

Please sign in to comment.