menu
#2387360 A void function must not return a value

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 16:59:24 +0000 UTC

System Information

PHP version: 7.3.1
Operating system: win
System banner: Windows NT DESKTOP-18OT2FV 10.0 build 17763 (Windows 10) AMD64

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/levelboard_v1.1.0/src/popkechupki/levelboard/LevelBoard
Line: #119
Error level: E_COMPILE_ERROR
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
    }

public function setXp($player, $value) :void
{
$this->scoreboard->setLine($player, 8, $value." xp");
}

public function getXp($player) :void
{
return $this->dexpConfig->get($player);
}

public function reloadXp($player) :void
{
$this->scoreboard->setLine($player, 8, $this->dexpConfig->get($player->getName())." xp");
}

public function setPing($player) :void
{
$this->scoreboard->setLine($player, 11, $player->getPing() ." ms");

Loaded Plugins

  • Show

Server Settings

  • Show