menu
#3969323 Argument 1 passed to czechpmdevs\buildertools\Selectors::switchWandSelector() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given

Submitted by PocketMine-MP 3.8.6

General information

Version: 3.8.6
Git commit: 1bfd6f2a
Plugin involvement: Direct
Report date: 2020-03-23 00:45:39 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux 3eebe70b355d 4.4.0-164-generic #192-Ubuntu SMP Fri Sep 13 12:02:50 UTC 2019 x86_64

Error information

Warning: the BuilderTools plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to czechpmdevs\buildertools\Selectors::switchWandSelector() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given
File: plugins/BuilderTools.phar/src/czechpmdevs/buildertools/Selectors
Line: #141
Error level: TypeError
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
        if($pos == 2) {
return (bool)isset(self::$pos2[strtolower($player->getName())]);
}
return false;
}

/**
* @param Player $player
*/
public static function switchWandSelector(Player $player) {
if(isset(self::$wandSelectors[strtolower($player->getName())])) {
unset(self::$wandSelectors[strtolower($player->getName())]);
}
else {
self::$wandSelectors[strtolower($player->getName())] = $player;
}
}

/**
* @param Player $player
#0 plugins/BuilderTools.phar/src/czechpmdevs/buildertools/commands/WandCommand(56): czechpmdevs\buildertools\Selectors::switchWandSelector(object pocketmine\command\ConsoleCommandSender)
#1 src/pocketmine/command/SimpleCommandMap(270): czechpmdevs\buildertools\commands\WandCommand->execute(object pocketmine\command\ConsoleCommandSender, string[5] /wand, array[0])
#2 src/pocketmine/Server(2029): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[5] /wand)
#3 src/pocketmine/Server(1616): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[5] /wand)
#4 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#5 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#6 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1584924339.9345)
#7 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#10 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show