Skip to content

Commit

Permalink
Fix Essentials hook not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
quantiom committed Sep 30, 2022
1 parent 26770ec commit 35c09cc
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ class EssentialsHook : IHook {

override fun getID() = "Essentials"

// remove essentials vanish
@EventHandler(priority = EventPriority.LOWEST)
private fun onJoin(event: PlayerJoinEvent) {
this.essentials.getUser(event.player).isVanished = false
}

@EventHandler
private fun onVanish(event: PlayerVanishEvent) {
if (Bukkit.getPluginManager().isPluginEnabled("Essentials")) {
Expand All @@ -28,7 +22,7 @@ class EssentialsHook : IHook {
}

@EventHandler
private fun onUnvanish(event: PlayerUnVanishEvent) {
private fun onUnVanish(event: PlayerUnVanishEvent) {
if (Bukkit.getPluginManager().isPluginEnabled("Essentials")) {
this.essentials.getUser(event.player).isHidden = false
}
Expand Down

0 comments on commit 35c09cc

Please sign in to comment.