menu
#3762345 Cannot declare class menuenchant\Main because the name is already in use

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-02-13 15:46:34 +0000 UTC

System Information

PHP version: 7.3.5
Operating system: win
System banner: Windows NT TaiNamreal28 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot declare class menuenchant\Main because the name is already in use
File: plugins/MenuEnchant/src/MenuUI/Main
Line: #19
Error level: E_COMPILE_ERROR
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use pocketmine\Server;

use pocketmine\command\CommandSender;
use pocketmine\command\Command;

use pocketmine\utils\TextFormat as C;

use MenuUI\Main;

class Main extends PluginBase implements Listener {

public function onEnable(){
$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->eco = $this->getServer()->getPluginManager()->getPlugin("EconomyAPI");
}

public function onCommand(CommandSender $player, Command $command, string $label, array $args) : bool {
switch($command->getName()){
case "muaec":
if($player instanceof Player){

Loaded Plugins

  • Show

Server Settings

  • Show