mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
eliminate remaining empty() usages
This commit is contained in:
@ -26,6 +26,7 @@ namespace pocketmine\event\player;
|
||||
use pocketmine\event\Event;
|
||||
use pocketmine\player\PlayerInfo;
|
||||
use function array_keys;
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* Called when a player connects to the server, prior to authentication taking place.
|
||||
@ -139,7 +140,7 @@ class PlayerPreLoginEvent extends Event{
|
||||
* Returns whether the player is allowed to continue logging in.
|
||||
*/
|
||||
public function isAllowed() : bool{
|
||||
return empty($this->kickReasons);
|
||||
return count($this->kickReasons) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user