menu
#3758438 Can't use method return value in write context

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-02-13 05:27:14 +0000 UTC

System Information

PHP version: 7.3.7
Operating system: win
System banner: Windows NT USER-PC 10.0 build 18362 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Can't use method return value in write context
File: plugins/SendMessage_v1.6.9/src/SendMessage/main
Line: #50
Error level: E_COMPILE_ERROR
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

public function onJoin(PlayerJoinEvent $event){
$player = $event->getPlayer();
$name = $player->getName();
$he = $player->getMaxHealth();
if($name === "T0NK0TU"){
$this->c->getAll();
$event->setJoinMessage("§6【無法者】§dT0NK0TU");
$player->setMaxHealth($this->c->get($he));
}elseif($player->getMaxHealth() = 0){
$player->setMaxHealth(20);
}else{
$this->c->getAll();
$player->setMaxHealth($this->c->get($he));
$event->setJoinMessage("§e[§d地獄へようこそ§e]§f".$name."");

}
}
}

Loaded Plugins

  • Show

Server Settings

  • Show