menu
#7304147 Cannot declare class MagicSaucer2636\InactivityKick\Main, because the name is already in use

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 22:23:29 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 9b32ef03-0551-44e9-8858-8f18ff2dfae4 5.4.189-2-pve #1 SMP PVE 5.4.189-2 (Mon, 13 Jun 2022 09:39:53 +0200) x86_64

Error information

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

namespace MagicSaucer2636\InactivityKick;

use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\Listener;
use pocketmine\plugin\PluginBase;

class Main extends PluginBase implements Listener {

public array $last_move = [];

public int $max_afk_time = 60*5; # Number of seconds


public function onEnable(): void {
$this->getLogger()->notice("ยป SwitchBall Plugin was well launched !");
$this->getServer()->getPluginManager()->registerEvents($this, $this);
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show