Fix color preservation when changing prefix and add LibertyBans integration
- Fixed issue where gradient colors were lost when changing prefix - Updated GradientGUIListener to preserve existing colors when setting prefix - Updated GradientPrefixCommand to pass existing colors to confirmation GUI - Added LibertyBans integration (simple version without API dependency) - Added LibertyBans to softdepend in plugin.yml - LibertyBans integration detects plugin presence but relies on LibertyBans own mute handling
This commit is contained in:
parent
ef1a6320cb
commit
ee626c8d8b
6 changed files with 91 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import com.loki.lochat.commands.*;
|
|||
import com.loki.lochat.config.ConfigManager;
|
||||
import com.loki.lochat.config.MessageConfig;
|
||||
import com.loki.lochat.gradient.GradientModule;
|
||||
import com.loki.lochat.integrations.LibertyBansHook;
|
||||
import com.loki.lochat.integrations.PlaceholderAPIHook;
|
||||
import com.loki.lochat.listeners.ChatListener;
|
||||
import com.loki.lochat.managers.*;
|
||||
|
|
@ -27,6 +28,7 @@ public final class LoChat extends JavaPlugin {
|
|||
private EmojiManager emojiManager;
|
||||
private CustomCommandManager customCommandManager;
|
||||
private GradientModule gradientModule;
|
||||
private LibertyBansHook libertyBansHook;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
|
|
@ -54,6 +56,9 @@ public final class LoChat extends JavaPlugin {
|
|||
getLogger().info("Gradient модуль (LoPreff) загружен!");
|
||||
}
|
||||
|
||||
// Инициализация LibertyBans интеграции
|
||||
libertyBansHook = new LibertyBansHook(this);
|
||||
|
||||
// Регистрация команд
|
||||
registerCommands();
|
||||
|
||||
|
|
@ -174,4 +179,8 @@ public final class LoChat extends JavaPlugin {
|
|||
return customCommandManager;
|
||||
}
|
||||
|
||||
public LibertyBansHook getLibertyBansHook() {
|
||||
return libertyBansHook;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue