menu
#4775752 Argument 1 passed to SystemBan\anticheat\Alerts::isEnable() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given

Submitted by PocketMine-MP 3.17.4

General information

Version: 3.17.4
Git commit: 2e9117d1
Plugin involvement: Direct
Report date: 2021-02-23 13:11:12 +0000 UTC
Server uptime: 0 days 0 hours 42 minutes 19 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 9cbb395f-56c2-40d4-a538-e9fcac97ac66 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the SystemBan plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to SystemBan\anticheat\Alerts::isEnable() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given
File: plugins/DiverStaff.phar/src/SystemBan/anticheat/Alerts
Line: #20
Error level: TypeError
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Alerts {

/** @var Array[] */
protected static $alerts = [];

/**
* @param Player $player
* @return void
*/
public static function isEnable(Player $player) : bool {
if(isset(self::$alerts[$player->getName()])){
return true;
}else{
return false;
}
return false;
}

/**
* @param Player $player
#0 plugins/DiverStaff.phar/src/SystemBan/commands/AlertsCommand(35): SystemBan\anticheat\Alerts::isEnable(object pocketmine\command\ConsoleCommandSender)
#1 pmsrc/src/pocketmine/command/SimpleCommandMap(248): SystemBan\commands\AlertsCommand->execute(object pocketmine\command\ConsoleCommandSender, string[6] alerts, array[0])
#2 pmsrc/src/pocketmine/Server(1810): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[6] alerts)
#3 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[6] alerts)
#4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine\{closure}()
#5 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#6 pmsrc/src/pocketmine/Server(2156): pocketmine\snooze\SleeperHandler->sleepUntil(double 1614085872.1758)
#7 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#8 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#9 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server()
#11 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show