Fixed DatabaseConnection not being loaded on startup
This commit is contained in:
1 parent
a9550c82fe
commit
313d09906d
4 files changed
+11
-5
No files matched your search
@@ -4,6 +4,7 @@ import com.alttd.chat.commands.GlobalChat;
|
||||
import com.alttd.chat.commands.Message;
|
||||
import com.alttd.chat.commands.Reply;
|
||||
import com.alttd.chat.config.Config;
|
||||
import com.alttd.chat.database.DatabaseConnection;
|
||||
import com.alttd.chat.handler.ChatHandler;
|
||||
import com.alttd.chat.listeners.ChatListener;
|
||||
import com.alttd.chat.listeners.PlayerListener;
|
||||
@@ -28,6 +29,7 @@ public class ChatPlugin extends JavaPlugin {
|
||||
ALogger.init(getSLF4JLogger());
|
||||
chatAPI = new ChatImplementation();
|
||||
chatHandler = new ChatHandler();
|
||||
DatabaseConnection.initialize();
|
||||
registerListener(new PlayerListener(), new ChatListener());
|
||||
registerCommand("globalchat", new GlobalChat());
|
||||
registerCommand("message", new Message());
|
||||
|
||||
Reference in new issue
Block a user