Skip to content

Commit

Permalink
Edit for Server Full Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
KanekiLeChomeur authored Jun 12, 2022
1 parent 7295a74 commit fb3e32b
Showing 1 changed file with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,28 @@

namespace CustomAlerts\Events;

use pocketmine\player\Player;
use pocketmine\player\PlayerInfo;
use pocketmine\network\mcpe\NetworkSession;

class CustomAlertsFullServerKickEvent extends CustomAlertsEvent {
class CustomAlertsFullServerKickEvent extends CustomAlertsEvent{

public static $handlerList = null;

/** @var PlayerInfo $player */
private $player;
/** @var NetworkSession $origin */
private $origin;

/**
* @param PlayerInfo $player
* @param NetworkSession $origin
*/
public function __construct(PlayerInfo $player){
$this->player = $player;
public function __construct(NetworkSession $origin){
$this->origin = $origin;
}

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

0 comments on commit fb3e32b

Please sign in to comment.