menu
#2821721 Cannot declare class FactionUI\Main, because the name is already in use

Submitted by PocketMine-MP 3.9.3

General information

Version: 3.9.3
Git commit: 18a1bfe4
Plugin involvement: Direct
Report date: 2019-09-10 15:24:48 +0000 UTC

System Information

PHP version: 7.2.19
Operating system: win
System banner: Windows NT DESKTOP-O2Q84HL 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot declare class FactionUI\Main, because the name is already in use
File: plugins/GeneralMCTutorial/src/Varion/Main
Line: #17
Error level: E_COMPILE_ERROR
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use pocketmine\event\Listener;
use pocketmine\utils\TextFormat;
use pocketmine\Player;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\command\CommandExecutor;
use pocketmine\command\ConsoleCommandSender;
use jojoe77777\FormAPI;

class Main extends PluginBase implements Listener {

public function onEnable() {
$this->getServer()->loadLevel("hub");
$api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
if($api === null){
$this->getServer()->getPluginManager()->disablePlugin($this);
}
}

public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args) : bool {

Loaded Plugins

  • Show

Server Settings

  • Show