diff --git a/src/main/java/com/rezzedup/discordsrv/staffchat/StaffChatPlugin.java b/src/main/java/com/rezzedup/discordsrv/staffchat/StaffChatPlugin.java index f7701b6..a025dcc 100644 --- a/src/main/java/com/rezzedup/discordsrv/staffchat/StaffChatPlugin.java +++ b/src/main/java/com/rezzedup/discordsrv/staffchat/StaffChatPlugin.java @@ -124,7 +124,7 @@ public void onEnable() getLogger().warning("Staff chat messages will still work in-game, however."); // Subscribe to DiscordSRV later because it somehow hasn't enabled yet. - getServer().getPluginManager().registerEvents(new DiscordSrvLoadedLaterListener(this), this); + events().register(new DiscordSrvLoadedLaterListener(this)); } startMetrics();