menu
#3237230 Argument 1 passed to pocketmine\lang\BaseLang::translateString() must be of the type string, boolean given

Submitted by PocketMine-MP 3.9.6

General information

Version: 3.9.6
Git commit: d1b70bd4
Plugin involvement: Indirect
Report date: 2019-12-01 08:26:54 +0000 UTC

System Information

PHP version: 7.2.15
Operating system: linux
System banner: Linux g7 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64

Error information

Warning: the WorldBorder plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Argument 1 passed to pocketmine\lang\BaseLang::translateString() must be of the type string, boolean given
File: src/pocketmine/lang/BaseLang
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
	}

/**
* @param string $str
* @param string[] $params
* @param string|null $onlyPrefix
*
* @return string
*/
public function translateString(string $str, array $params = [], string $onlyPrefix = null) : string{
$baseText = $this->get($str);
$baseText = $this->parseTranslation(($baseText !== null and ($onlyPrefix === null or strpos($str, $onlyPrefix) === 0)) ? $baseText : $str, $onlyPrefix);

foreach($params as $i => $p){
$baseText = str_replace("{%$i}", $this->parseTranslation((string) $p), $baseText, $onlyPrefix);
}

return $baseText;
}

#0 src/pocketmine/Player(3382): pocketmine\lang\BaseLang->translateString(boolean )
#1 plugins/WorldBorder.phar/src/WorldBorder/Main(43): pocketmine\Player->sendMessage(boolean )
#2 src/pocketmine/plugin/MethodEventExecutor(38): WorldBorder\Main->onMove(object pocketmine\event\player\PlayerMoveEvent)
#3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object WorldBorder\Main, object pocketmine\event\player\PlayerMoveEvent)
#4 src/pocketmine/event/Event(97): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerMoveEvent)
#5 src/pocketmine/Player(1653): pocketmine\event\Event->call()
#6 src/pocketmine/Player(1758): pocketmine\Player->processMovement(integer 1)
#7 src/pocketmine/level/Level(853): pocketmine\Player->onUpdate(integer 11477)
#8 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 11477)
#9 src/pocketmine/Server(2452): pocketmine\level\Level->doTick(integer 11477)
#10 src/pocketmine/Server(2583): pocketmine\Server->checkTickUpdates(integer 11477, double 1575188814.4947)
#11 src/pocketmine/Server(2352): pocketmine\Server->tick()
#12 src/pocketmine/Server(2212): pocketmine\Server->tickProcessor()
#13 src/pocketmine/Server(1790): pocketmine\Server->start()
#14 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /home/gsp_2676/g6.hmserv.eu-19133/, string[42] /home/gsp_2676/g6.hmserv.eu-19133/plugins/)
#15 src/pocketmine/PocketMine(299): pocketmine\server()
#16 (1): require(string[89] phar:///home/gsp_2676/g6.hmserv.eu-19133/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show