1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-28 05:54:16 +02:00

Allow registering skin texture provider for player heads

This commit is contained in:
Shy
2025-05-01 11:25:49 +02:00
parent 8128628b12
commit 955ab8791a
3 changed files with 101 additions and 45 deletions
@@ -29,6 +29,7 @@ public final class SModerationPaper extends JavaPlugin {
public static SModerationPaper PLUGIN = null;
public static SModerationConfig CONFIG = null;
public static File SAVE_FILE = null;
private static SkinTextureProvider textureProvider = null;
public static final TextColor PRIMARY_COLOR = TextColor.color(212, 0, 255);
public static final TextColor SECONDARY_COLOR = TextColor.color(52, 143, 255);
@@ -75,7 +76,7 @@ public final class SModerationPaper extends JavaPlugin {
command.setExecutor(executor);
command.setTabCompleter(executor);
} else {
LOGGER.warn("Command %s failed to register: This command does not exist".formatted(label));
LOGGER.warn("Command {} failed to register: This command does not exist", label);
}
}
@@ -89,4 +90,12 @@ public final class SModerationPaper extends JavaPlugin {
}
}
}
public static SkinTextureProvider getTextureProvider() {
return textureProvider;
}
public static void setTextureProvider(SkinTextureProvider textureProvider) {
SModerationPaper.textureProvider = textureProvider;
}
}