From e48d391af552069aac23f9178e117e2dc06f5c63 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Thu, 2 Nov 2017 21:04:06 +0100 Subject: [PATCH] Actually call DPlayerKickEvent --- src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java b/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java index 648a743a..268645e5 100644 --- a/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java +++ b/src/main/java/io/github/dre2n/dungeonsxl/player/DGamePlayer.java @@ -980,6 +980,7 @@ public class DGamePlayer extends DInstancePlayer { if (kick) { DPlayerKickEvent dPlayerKickEvent = new DPlayerKickEvent(this, DPlayerKickEvent.Cause.OFFLINE); + Bukkit.getPluginManager().callEvent(dPlayerKickEvent); if (!dPlayerKickEvent.isCancelled()) { leave();