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:
Tomas Slusny
2018-02-15 16:54:53 +01:00
parent a40c8b29b9
commit a0f074fd86
2 changed files with 14 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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)
{