menu
#4656985 Argument 1 passed to padreon\TittleADR\Main::openForm() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-22 03:13:10 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux 5ead5a1c-8d74-4f2c-8fcb-9f7e33797881 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64

Error information

Warning: the TitleADR plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to padreon\TittleADR\Main::openForm() must be an instance of pocketmine\Player, instance of pocketmine\command\ConsoleCommandSender given
File: plugins/TagsUI-1.phar/src/padreon/TittleADR/Main
Line: #124
Error level: TypeError
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
	$message = str_replace("&k", TextFormat::OBFUSCATED, $message);
$message = str_replace("&l", TextFormat::BOLD, $message);
$message = str_replace("&m", TextFormat::STRIKETHROUGH, $message);
$message = str_replace("&n", TextFormat::UNDERLINE, $message);
$message = str_replace("&o", TextFormat::ITALIC, $message);
$message = str_replace("&r", TextFormat::RESET, $message);
return $message;
}

public function openForm(Player $player) {
$form = new SimpleForm(function (Player $player, int $data = null) {
if($data !== null) {
$streeng = "$data";
$conf = $this->myConfig->get($streeng);
$permis = $conf[0];
$tag = $conf[1];

if ($player->hasPermission($permis))
{
$prefix = $this->getServer()->getPluginManager()->getPlugin("PureChat");
#0 plugins/TagsUI-1.phar/src/padreon/TittleADR/Main(91): padreon\TittleADR\Main->openForm(object pocketmine\command\ConsoleCommandSender)
#1 src/pocketmine/command/PluginCommand(54): padreon\TittleADR\Main->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[4] tags, array[0])
#2 src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[4] tags, array[0])
#3 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[4] tags)
#4 src/pocketmine/Server(1423): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[4] tags)
#5 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#6 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#7 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1606014790.9728)
#8 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1588): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#11 src/pocketmine/PocketMine(304): pocketmine\server()
#12 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show