menu
#9249563 pocketmine\player\Player::sendMessage(): Argument #1 ($message) must be of type pocketmine\lang\Translatable|string, int given, called in /home/container/plugins/PaintSplash/src/Main.php on line 86

Submitted by PocketMine-MP 5.5.0

General information

Version: 5.5.0
Git commit: c8d357f4
Plugin involvement: Indirect
Report date: 2023-09-19 16:45:17 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 6 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux 890541fd-8d57-4074-822d-c318933526f3 5.15.0-1038-oracle #44-Ubuntu SMP Thu Jun 22 03:34:10 UTC 2023 aarch64

Error information

Warning: the PaintSplash plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: pocketmine\player\Player::sendMessage(): Argument #1 ($message) must be of type pocketmine\lang\Translatable|string, int given, called in /home/container/plugins/PaintSplash/src/Main.php on line 86
File: pmsrc/src/player/Player
Line: #2092
Type: TypeError
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
	public function setTitleDuration(int $fadeIn, int $stay, int $fadeOut) : void{
if($fadeIn >= 0 && $stay >= 0 && $fadeOut >= 0){
$this->getNetworkSession()->onTitleDuration($fadeIn, $stay, $fadeOut);
}
}

/**
* Sends a direct chat message to a player
*/
public function sendMessage(Translatable|string $message) : void{
$this->getNetworkSession()->onChatMessage($message);
}

public function sendJukeboxPopup(Translatable|string $message) : void{
$this->getNetworkSession()->onJukeboxPopup($message);
}

/**
* Sends a popup message to the player
*
#0 plugins/PaintSplash/src/Main(86): pocketmine\player\Player->sendMessage(int 1)
#1 pmsrc/src/event/RegisteredListener(61): Dzheyden8561\PaintSplash\Main->onSnowBallhit(object pocketmine\event\entity\ProjectileHitEntityEvent#81788)
#2 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\entity\ProjectileHitEntityEvent#81788)
#3 pmsrc/src/entity/projectile/Projectile(235): pocketmine\event\Event->call()
#4 pmsrc/src/entity/Entity(997): pocketmine\entity\projectile\Projectile->move(float -0.0012637777382124, float -0.75073450753571, float 0.00033974889605498)
#5 pmsrc/src/world/World(1000): pocketmine\entity\Entity->onUpdate(int 1317)
#6 pmsrc/src/world/World(920): pocketmine\world\World->actuallyDoTick(int 1317)
#7 pmsrc/src/world/WorldManager(351): pocketmine\world\World->doTick(int 1317)
#8 pmsrc/src/Server(1796): pocketmine\world\WorldManager->tick(int 1317)
#9 pmsrc/src/Server(1678): pocketmine\Server->tick()
#10 pmsrc/src/Server(1064): pocketmine\Server->tickProcessor()
#11 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#12 pmsrc/src/PocketMine(357): pocketmine\server()
#13 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show