From 81cb904fb6fc725fd2fec9de3b7346b9eddcd33f Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 13 Dec 2015 22:51:14 -0600 Subject: [PATCH] Use priority event handling --- .../gg/obsidian/discoursegroupsync/DiscourseGroupSync.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/obsidian/discoursegroupsync/DiscourseGroupSync.kt b/src/main/kotlin/gg/obsidian/discoursegroupsync/DiscourseGroupSync.kt index 5b23832..f72ccb8 100644 --- a/src/main/kotlin/gg/obsidian/discoursegroupsync/DiscourseGroupSync.kt +++ b/src/main/kotlin/gg/obsidian/discoursegroupsync/DiscourseGroupSync.kt @@ -2,6 +2,7 @@ package gg.obsidian.discoursegroupsync import net.milkbowl.vault.permission.Permission import org.bukkit.event.EventHandler +import org.bukkit.event.EventPriority import org.bukkit.event.Listener import org.bukkit.event.player.PlayerJoinEvent import org.bukkit.plugin.RegisteredServiceProvider @@ -32,7 +33,7 @@ class DiscourseGroupSync : JavaPlugin(), Listener { server.pluginManager.registerEvents(this, this) } - @EventHandler + @EventHandler(priority = EventPriority.HIGH) fun onJoin(e: PlayerJoinEvent) { val canJoin = userManager.onJoin(e.player) if (!canJoin) {