mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +01:00
Actually call DPlayerKickEvent
This commit is contained in:
parent
40c9547a29
commit
e48d391af5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user