build: rebuild artifacts and update CI workflows
This commit is contained in:
parent
eb85778b8e
commit
812517513f
116 changed files with 27 additions and 8 deletions
|
|
@ -35,7 +35,12 @@ public class ConfigManager {
|
|||
this.filtersConfig = new FiltersConfig(plugin);
|
||||
this.soundsConfig = new SoundsConfig(plugin);
|
||||
|
||||
// Инициализируем все конфиги
|
||||
this.appearanceConfig.init();
|
||||
this.messagesConfig.init();
|
||||
this.muteConfig.init();
|
||||
this.filtersConfig.init();
|
||||
this.soundsConfig.init();
|
||||
|
||||
loader.updateConfig();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ public class FiltersConfig extends BaseConfig {
|
|||
|
||||
public FiltersConfig(JavaPlugin plugin) {
|
||||
super(plugin, "filters.yml", true);
|
||||
init(); // ✅ Явная инициализация
|
||||
}
|
||||
|
||||
// ── Капс ────────────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ public class MessagesConfig extends BaseConfig {
|
|||
|
||||
public MessagesConfig(JavaPlugin plugin) {
|
||||
super(plugin, "messages.yml", true); // true = в папке config/
|
||||
init(); // ✅ Явная инициализация
|
||||
}
|
||||
|
||||
// ── Общие сообщения ────────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ public class MuteConfig extends BaseConfig {
|
|||
|
||||
public MuteConfig(JavaPlugin plugin) {
|
||||
super(plugin, "mute.yml", true);
|
||||
init(); // ✅ Явная инициализация
|
||||
}
|
||||
|
||||
// ── Основные настройки ──────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ public class SoundsConfig extends BaseConfig {
|
|||
|
||||
public SoundsConfig(JavaPlugin plugin) {
|
||||
super(plugin, "sounds.yml", true);
|
||||
init(); // ✅ Явная инициализация
|
||||
}
|
||||
|
||||
// ── Звуки упоминаний ────────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ public class MessagingServiceImpl implements MessagingService {
|
|||
this.pmService = new PrivateMessageService();
|
||||
this.spyService = new SpyService(messageConfig);
|
||||
this.ignoreService = new IgnoreService(plugin);
|
||||
this.ignoreService.init();
|
||||
}
|
||||
|
||||
// ========== PM Delegation ==========
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ public class IgnoreService {
|
|||
public IgnoreService(JavaPlugin plugin) {
|
||||
this.plugin = plugin;
|
||||
this.ignoreFile = new File(plugin.getDataFolder(), "ignores.yml");
|
||||
}
|
||||
|
||||
public void init() {
|
||||
load();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ public class PlaceholderProcessor {
|
|||
|
||||
// Базовые плейсхолдеры
|
||||
result = result.replace("{player}", player.getName());
|
||||
result = result.replace("{displayname}", player.getDisplayName());
|
||||
result = result.replace("{displayname}", net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer.plainText().serialize(player.displayName()));
|
||||
result = result.replace("{world}", player.getWorld().getName());
|
||||
result = result.replace("{x}", String.valueOf(player.getLocation().getBlockX()));
|
||||
result = result.replace("{y}", String.valueOf(player.getLocation().getBlockY()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue