Skip to content

Commit

Permalink
Use priority event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Dec 14, 2015
1 parent a6d6c45 commit 81cb904
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 81cb904

Please sign in to comment.