mirror of
https://github.com/nikdoof/bukkitxmpp.git
synced 2026-01-30 17:58:13 +00:00
Switch to Monitor priority for events, as we don't modify anything.
This commit is contained in:
@@ -137,9 +137,9 @@ public class BukkitXMPP extends JavaPlugin implements PacketListener {
|
|||||||
|
|
||||||
// Register our events
|
// Register our events
|
||||||
PluginManager pm = getServer().getPluginManager();
|
PluginManager pm = getServer().getPluginManager();
|
||||||
pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);
|
pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Monitor, this);
|
||||||
pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Event.Priority.Normal, this);
|
pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Event.Priority.Monitor, this);
|
||||||
pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);
|
pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Monitor, this);
|
||||||
|
|
||||||
// EXAMPLE: Custom code, here we just output some info so we can check all is well
|
// EXAMPLE: Custom code, here we just output some info so we can check all is well
|
||||||
PluginDescriptionFile pdfFile = this.getDescription();
|
PluginDescriptionFile pdfFile = this.getDescription();
|
||||||
|
|||||||
Reference in New Issue
Block a user