Hooked up preference manager to Chat.

This commit is contained in:
Jonathan Williams 2014-05-30 00:33:55 -07:00
parent 77f6aac860
commit 6c9a2d0a01
2 changed files with 4 additions and 2 deletions

View File

@ -96,7 +96,7 @@ public class Hub extends JavaPlugin implements INautilusPlugin, IRelation
QueueManager queueManager = new QueueManager(this, clientManager, donationManager, new EloManager(this), partyManager); QueueManager queueManager = new QueueManager(this, clientManager, donationManager, new EloManager(this), partyManager);
new ServerManager(this, clientManager, donationManager, portal, partyManager, serverStatusManager, hubManager, new StackerManager(hubManager), queueManager); new ServerManager(this, clientManager, donationManager, portal, partyManager, serverStatusManager, hubManager, new StackerManager(hubManager), queueManager);
new Chat(this, clientManager, null, serverStatusManager.getCurrentServerName()); new Chat(this, clientManager, preferenceManager, serverStatusManager.getCurrentServerName());
new MemoryFix(this); new MemoryFix(this);
new FileUpdater(this, portal); new FileUpdater(this, portal);

View File

@ -66,6 +66,7 @@ import mineplex.core.elo.EloManager;
import mineplex.core.energy.Energy; import mineplex.core.energy.Energy;
import mineplex.core.explosion.Explosion; import mineplex.core.explosion.Explosion;
import mineplex.core.portal.Portal; import mineplex.core.portal.Portal;
import mineplex.core.preferences.PreferencesManager;
import mineplex.core.projectile.ProjectileManager; import mineplex.core.projectile.ProjectileManager;
import mineplex.core.stats.StatsManager; import mineplex.core.stats.StatsManager;
import mineplex.core.status.ServerStatusManager; import mineplex.core.status.ServerStatusManager;
@ -151,7 +152,8 @@ public class ArcadeManager extends MiniPlugin implements IRelation
_clientManager = clientManager; _clientManager = clientManager;
_chat = new Chat(plugin, _clientManager, null, serverStatusManager.getCurrentServerName()); PreferencesManager preferences = new PreferencesManager(plugin);
_chat = new Chat(plugin, _clientManager, preferences, serverStatusManager.getCurrentServerName());
_creature = creature; _creature = creature;