<?php

/*
 * CustomAlerts v2.0 by EvolSoft
 * Developer: Flavius12
 * Website: https://www.evolsoft.tk
 * Copyright (C) 2014-2018 EvolSoft
 * Licensed under MIT (https://github.com/EvolSoft/CustomAlerts/blob/master/LICENSE)
 */

namespace CustomAlerts\Events;

use pocketmine\player\Player;
use pocketmine\player\PlayerInfo;

class CustomAlertsFullServerKickEvent extends CustomAlertsEvent {
	
	public static $handlerList = null;
	
	/** @var PlayerInfo $player */
	private $player;
	
	/**
	 * @param PlayerInfo $player
	 */
	public function __construct(PlayerInfo $player){
		$this->player = $player;
	}

	/**
	 * Get full server kick event player
	 * 
	 * @return PlayerInfo
	 */
	public function getPlayerInfo() : PlayerInfo {
		return $this->player;
	}
}

<?php

/*
 * CustomAlerts v2.0 by EvolSoft
 * Developer: Flavius12
 * Website: https://www.evolsoft.tk
 * Copyright (C) 2014-2018 EvolSoft
 * Licensed under MIT (https://github.com/EvolSoft/CustomAlerts/blob/master/LICENSE)
 */

namespace CustomAlerts\Events;

use pocketmine\network\mcpe\NetworkSession;

class CustomAlertsFullServerKickEvent extends CustomAlertsEvent{
	
	public static $handlerList = null;
	
	/** @var NetworkSession $origin */
	private $origin;
	
	/**
	 * @param NetworkSession $origin
	 */
	public function __construct(NetworkSession $origin){
		$this->origin = $origin;
	}

	/**
	 * Get full server kick event player
	 * 
	 * @return NetworkSession
	 */
	public function getPlayerInfo() : NetworkSession {
		return $this->origin;
	}
}

Edit for Server Full Patch
Edit for Server Full Patch