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

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: Indirect
Report date: 2020-02-13 14:36:01 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT DESKTOP-G8QPITE 10.0 build 18362 (Windows 10) AMD64

Error information

Warning: a 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, integer given
File: src/pocketmine/lang/BaseLang
Line: #130
Error level: TypeError
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
	}

/**
* @param string $str
* @param (float|int|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(3538): pocketmine\lang\BaseLang->translateString(integer 2)
#1 plugins/PracticeParticle(81): pocketmine\Player->sendMessage(integer 2)
#2 src/pocketmine/scheduler/TaskHandler(169): ParticleTask->onRun(integer 231)
#3 src/pocketmine/scheduler/TaskScheduler(206): pocketmine\scheduler\TaskHandler->run(integer 231)
#4 src/pocketmine/plugin/PluginManager(703): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 231)
#5 src/pocketmine/Server(2670): pocketmine\plugin\PluginManager->tickSchedulers(integer 231)
#6 src/pocketmine/Server(2403): pocketmine\Server->tick()
#7 src/pocketmine/Server(2250): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1811): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] C:\Users\capta\Desktop\PMMP\pocketmine-MP\PMMP\, string[55] C:\Users\capta\Desktop\PMMP\pocketmine-MP\PMMP\plugins\)
#10 src/pocketmine/PocketMine(297): pocketmine\server()
#11 (1): require(string[102] phar://C:/Users/capta/Desktop/PMMP/pocketmine-MP/PMMP/PocketMine-MP.phar/src/poc)

Loaded Plugins

  • Show

Server Settings

  • Show