v1.2.4: Fix colors, add Russian locale, remove update checker

- Fixed HEX color format conversion (&#RRGGBB -> <#RRGGBB>)
- Added full Russian translation (ru.yml)
- Added ru.yml to auto-copy on first run
- Removed UpdateChecker (old IP plugin remnant)
- Fixed Config.getChildren() deep parameter bug
- Updated plugin.yml version to use Gradle variable
This commit is contained in:
loki 2026-02-25 13:01:44 +01:00
parent 8aeb547897
commit 56bf11822e
7 changed files with 267 additions and 57 deletions

View file

@ -187,7 +187,8 @@ public enum Config {
return new ArrayList<>();
}
return new ArrayList<>(section.getKeys(deep != null));
boolean isDeep = deep.length > 0 && deep[0];
return new ArrayList<>(section.getKeys(isDeep));
}
// checks if the specified path exists to avoid developer error

View file

@ -64,6 +64,7 @@ public class Locales {
// create non-existent files
if (files != null && files.length == 0) {
plugin.saveResource("locales/en.yml", false);
plugin.saveResource("locales/ru.yml", false);
plugin.saveResource("locales/nl.yml", false);
plugin.saveResource("locales/fr.yml", false);
plugin.saveResource("locales/zh_cn.yml", false);

View file

@ -246,7 +246,7 @@ public class Option {
JUMP_TYPE_ENABLED = new HashMap<>();
JUMP_TYPE_CHANCE = new HashMap<>();
for (String type : Config.CONFIG.getChildren("jump-types.types", false)) {
for (String type : Config.CONFIG.getChildren("jump-types.types")) {
String path = "jump-types.types." + type;
JUMP_TYPE_ENABLED.put(type, Config.CONFIG.getBoolean(path + ".enabled"));
JUMP_TYPE_CHANCE.put(type, Config.CONFIG.getDouble(path + ".chance"));