refactor: update displayed latest minecraft version

This commit is contained in:
ineanto 2025-03-28 10:09:47 +01:00
parent c74532ce66
commit 9adf5f34f5
Signed by: ineanto
GPG key ID: E511F9CAA2F9CE84
4 changed files with 4 additions and 9 deletions

View file

@ -49,7 +49,7 @@ public class Nicko extends JavaPlugin {
if (!MinecraftVersion.TRAILS_AND_TAILS.atOrAbove()) {
getLogger().severe("This version (" + MinecraftVersion.getCurrentVersion().getVersion() + ") is not supported by Nicko!");
getLogger().severe("As of version 1.2.0, Nicko only supports the latest Minecraft version. (Currently 1.21.3)");
getLogger().severe("As of version 1.2.0, Nicko only supports the latest Minecraft version. (Currently 1.21.4)");
dataStore.getStorage().setError(true);
Bukkit.getPluginManager().disablePlugin(this);
}

View file

@ -27,7 +27,7 @@ public class PromptManager {
final Optional<NickoProfile> optionalProfile = dataStore.getData(player.getUniqueId());
this.profile = optionalProfile.orElse(NickoProfile.EMPTY_PROFILE.clone());
this.appearanceManager = new AppearanceManager(player);
this.prompt = new AnvilPrompt(player, playerLanguage);
this.prompt = new SignPrompt(player, playerLanguage);
}
public void displayNameThenSkinPrompt() {

View file

@ -27,9 +27,9 @@ public class SignPrompt implements Prompt {
private final AtomicReference<Optional<String>> name = new AtomicReference<>();
private final AtomicReference<Optional<String>> skin = new AtomicReference<>();
public SignPrompt(Player player) {
public SignPrompt(Player player, PlayerLanguage playerLanguage) {
this.player = player;
this.playerLanguage = new PlayerLanguage(player);
this.playerLanguage = playerLanguage;
}
@Override