Actually call DPlayerKickEvent

This commit is contained in:
Daniel Saukel 2017-11-02 21:04:06 +01:00
parent 40c9547a29
commit e48d391af5

View File

@ -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();