Re-cache chatMessageManager colors on startup
Re-cache chatMessageManager colors on plugin startup and refresh chat messages. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -82,6 +82,13 @@ public class ChatCommandsPlugin extends Plugin
|
||||
@Inject
|
||||
private ScheduledExecutorService executor;
|
||||
|
||||
@Override
|
||||
protected void startUp()
|
||||
{
|
||||
cacheConfiguredColors();
|
||||
chatMessageManager.refreshAll();
|
||||
}
|
||||
|
||||
@Provides
|
||||
ChatCommandsConfig provideConfig(ConfigManager configManager)
|
||||
{
|
||||
|
||||
@@ -93,6 +93,13 @@ public class ExaminePlugin extends Plugin
|
||||
@Inject
|
||||
private ScheduledExecutorService executor;
|
||||
|
||||
@Override
|
||||
protected void startUp()
|
||||
{
|
||||
cacheConfiguredColors();
|
||||
chatMessageManager.refreshAll();
|
||||
}
|
||||
|
||||
@Provides
|
||||
ExamineConfig provideConfig(ConfigManager configManager)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user