menu
#10302404 Cannot declare class TMTCdev\core\EventsListener, because the name is already in use

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:17:49 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.3.0
JIT status: Not available
Operating system: win
System banner: Windows NT MSI 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Cannot declare class TMTCdev\core\EventsListener, because the name is already in use
File: plugins/mineSystem-PM5/src/TMTCdev/core/Main
Line: #10
Type: E_COMPILE_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace TMTCdev\core;

use pocketmine\block\VanillaBlocks;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\Listener;
use pocketmine\plugin\PluginBase;

class EventsListener extends PluginBase implements Listener {
public function onEnable(): void
{
$this->getServer()->getPluginManager()->registerEvents($this, $this);
}

public function interact(BlockBreakEvent $event){
$player = $event->getPlayer();
$block = $event->getBlock();
if ($block->getId() === VanillaBlocks::COBBLESTONE()){
$player->getXpManager()->addXp("356");

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show