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
|
|
@ -157,7 +157,9 @@ public class GradientPrefixCommand implements CommandExecutor, TabCompleter {
|
|||
}
|
||||
|
||||
GradientConfirmGUI gui = new GradientConfirmGUI(module, player,
|
||||
GradientConfirmGUI.ConfirmType.PREFIX, data.getColors(), prefix, price);
|
||||
GradientConfirmGUI.ConfirmType.PREFIX,
|
||||
data.hasColors() && data.isColorEnabled() ? data.getColors() : null,
|
||||
prefix, price);
|
||||
FoliaUtil.runEntityTask(module.getPlugin(), player, gui::open);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue