mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
Load bukkit connection listener earlier
This commit is contained in:
parent
f8c5578cb3
commit
62b3f0b8b3
@ -172,14 +172,14 @@ public class BukkitDiscordSRV extends ServerDiscordSRV<BukkitConfig, BukkitConne
|
|||||||
// Service provider
|
// Service provider
|
||||||
server().getServicesManager().register(DiscordSRVApi.class, this, plugin(), ServicePriority.Normal);
|
server().getServicesManager().register(DiscordSRVApi.class, this, plugin(), ServicePriority.Normal);
|
||||||
|
|
||||||
// Player related
|
// Adventure audiences, connection listener
|
||||||
this.audiences = BukkitAudiences.create(bootstrap.getPlugin());
|
this.audiences = BukkitAudiences.create(bootstrap.getPlugin());
|
||||||
|
server().getPluginManager().registerEvents(new BukkitConnectionListener(this), plugin());
|
||||||
|
|
||||||
super.enable();
|
super.enable();
|
||||||
|
|
||||||
// Register listeners
|
// Register listeners
|
||||||
server().getPluginManager().registerEvents(BukkitChatListener.get(this), plugin());
|
server().getPluginManager().registerEvents(BukkitChatListener.get(this), plugin());
|
||||||
server().getPluginManager().registerEvents(new BukkitConnectionListener(this), plugin());
|
|
||||||
server().getPluginManager().registerEvents(new BukkitDeathListener(this), plugin());
|
server().getPluginManager().registerEvents(new BukkitDeathListener(this), plugin());
|
||||||
server().getPluginManager().registerEvents(new BukkitStatusMessageListener(this), plugin());
|
server().getPluginManager().registerEvents(new BukkitStatusMessageListener(this), plugin());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user