Allow reuse of ReportManager instance (for later use).

This commit is contained in:
Keir 2016-01-08 13:59:30 +00:00
parent 3be6030a5d
commit 5cb91bb315

View File

@ -141,8 +141,9 @@ public class Arcade extends JavaPlugin
Chat chat = new Chat(this, _clientManager, preferenceManager, achievementManager, serverStatusManager.getCurrentServerName());
new MessageManager(this, _clientManager, preferenceManager, ignoreManager, punish, friendManager, chat);
SnapshotManager snapshotManager = new SnapshotManager();
ReportManager reportManager = new ReportManager(this, preferenceManager, statsManager, snapshotManager, serverStatusManager.getCurrentServerName());
new SnapshotPlugin(this, snapshotManager);
new ReportPlugin(this, new ReportManager(this, preferenceManager, statsManager, snapshotManager, serverStatusManager.getCurrentServerName()));
new ReportPlugin(this, reportManager);
BlockRestore blockRestore = new BlockRestore(this);