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) { if (kick) {
DPlayerKickEvent dPlayerKickEvent = new DPlayerKickEvent(this, DPlayerKickEvent.Cause.OFFLINE); DPlayerKickEvent dPlayerKickEvent = new DPlayerKickEvent(this, DPlayerKickEvent.Cause.OFFLINE);
Bukkit.getPluginManager().callEvent(dPlayerKickEvent);
if (!dPlayerKickEvent.isCancelled()) { if (!dPlayerKickEvent.isCancelled()) {
leave(); leave();