#6718992 A void function must not return a value
Submitted by PocketMine-MP 4.3.2
General information
Version: | 4.3.2 |
---|---|
Git commit: | 755ca1af |
Plugin involvement: | Direct |
Report date: | 2022-05-14 07:54:38 +0000 UTC |
Server uptime: | 0 days 0 hours 0 minutes 0 seconds |
System Information
PHP version: | 8.0.18 |
---|---|
Operating system: | linux |
System banner: | Linux e35ce50c-1dfe-43e3-9b04-3812612a81d5 5.13.0-1023-azure #27~20.04.1-Ubuntu SMP Mon Apr 25 22:39:07 UTC 2022 x86_64 |
Error information
Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: | A void function must not return a value |
---|---|
File: | plugins/Admin/src/staff/staffs/Main |
Line: | #103 |
Error level: | E_COMPILE_ERROR |
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
public function setPermission(?string $permission) : void{
if($permission !== "use.admin"){
foreach(explode(";", $permission) as $perm){
if(PermissionManager::getInstance()->getPermission($perm) === null){
$this->staffUi($sender);
}
}
}
return true;
}
public function totemEffect(Player $player){
$player->getInventory()->setItemInHand(Item::get(450,0,1));
$player->broadcastEntityEvent(ActorEventPacket::CONSUME_TOTEM);
$pk = new LevelEventPacket();
$pk->evid = LevelEventPacket::EVENT_SOUND_TOTEM;
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show