menu
#4874106 Cannot redeclare IvanCraft623\LoadingScreenAPI\LoadingScreenAPI::onLoad()

Submitted by PocketMine-MP 3.19.0

General information

Version: 3.19.0
Git commit: b307cd0a
Plugin involvement: Direct
Report date: 2021-04-08 06:56:25 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 4 seconds

System Information

PHP version: 7.3.8
Operating system: win
System banner: Windows NT DESKTOP-724G50M 10.0 build 19041 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare IvanCraft623\LoadingScreenAPI\LoadingScreenAPI::onLoad()
File: plugins/LoadingScreenAPI/src/IvanCraft623/LoadingScreenAPI/LoadingScreenAPI
Line: #20
Error level: E_COMPILE_ERROR
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

class LoadingScreenAPI extends PluginBase {

public static $instance;

public function onLoad() : void {
self::$instance = $this;
}

public function onLoad() : void {
if (!file_exists($this->getServer()->getDataPath() . DIRECTORY_SEPARATOR . "worlds" . DIRECTORY_SEPARATOR . "LoadingScreenLevel")) {
Server::getInstance()->generateLevel("LoadingScreenLevel");
}
}

public static function getInstance() : self {
return self::$instance;
}

public function send(Player $player, Position $position, $targetDimension = 0, int $ticks, bool $enableSound = true) {

Loaded Plugins

  • Show

Server Settings

  • Show