menu
#3758461 Cannot declare class ThongTin\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 05:30:19 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: linux
System banner: Linux 489175674c5f 4.19.0-0.bpo.6-amd64 #1 SMP Debian 4.19.67-2+deb10u1~bpo9+1 (2019-09-30) x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot declare class ThongTin\Main because the name is already in use
File: plugins/ThongTin/src/ThongTin/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 HuongDan\Main;

class Main extends PluginBase implements Listener {

public function onEnable(){
$this->getServer()->getPluginManager()->registerEvents($this, $this);
}

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

Loaded Plugins

  • Show

Server Settings

  • Show