menu
#4219490 Cannot declare class Amir\MainAdmin, because the name is already in use

Submitted by PocketMine-MP 3.12.0

General information

Version: 3.12.0
Git commit: 77d45bf1
Plugin involvement: Direct
Report date: 2020-05-23 00:32:05 +0000 UTC

System Information

PHP version: 7.3.15
Operating system: linux
System banner: Linux 10c3f561f4e9 3.10.0-1062.18.1.el7.x86_64 #1 SMP Tue Mar 17 23:49:17 UTC 2020 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot declare class Amir\MainAdmin, because the name is already in use
File: plugins/AdminCommand.phar/src/Amir/Main
Line: #12
Error level: E_COMPILE_ERROR
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace Amir;

use pocketmine\plugin\PluginBase;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\utils\Config;
use pocketmine\event\Listener;
use pocketmine\math\Vector3;

class MainAdmin extends PluginBase implements Listener {

public $cfg;
public $prisons;
public $mutes;
public $form;

public function onEnable(){
$this->form = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
$this->getScheduler()->scheduleRepeatingTask(new TaskMP($this), 20 * 60);
if(!is_dir($this->getDataFolder())){

Loaded Plugins

  • Show

Server Settings

  • Show