menu
#4657036 Cannot declare class viniciusdesigner\Main, because the name is already in use

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-22 04:33:59 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: win
System banner: Windows NT DESKTOP-8ECPVV4 10.0 build 18363 (Windows 10) AMD64

Error information

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

use pocketmine\event\Listener;
use pocketmine\event\player\PlayerJoinEvent;
use pocketmine\network\mcpe\protocol\LevelEventPacket;
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;

use pocketmine\utils\TextFormat;

class Main extends PluginBase implements Listener {

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

public function onCommand(CommandSender $sender, Command $cmd, string $label, array $args) : bool{
switch($cmd->getName()){
case "teste":
if($sender instanceof Player){
if(count($args) == 1){

Loaded Plugins

  • Show

Server Settings

  • Show