Skip to content

Commit

Permalink
Fancy event registration for DiscordSrvLoadedLaterListener.
Browse files Browse the repository at this point in the history
  • Loading branch information
RezzedUp committed Oct 9, 2021
1 parent 1fcce71 commit cab7489
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cab7489

Please sign in to comment.