menu
#10302582 Class r3pt1s\bansystem\handler\BanHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (r3pt1s\bansystem\handler\IHandler::dehandle)

Submitted by PocketMine-MP 5.11.0

General information

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

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: win
System banner: Windows NT VALRES 10.0 build 19045 (Windows 10) AMD64

Error information

Warning: the BanSystem plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Class r3pt1s\bansystem\handler\BanHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (r3pt1s\bansystem\handler\IHandler::dehandle)
File: plugins/BanSystem-main/src/r3pt1s/bansystem/handler/BanHandler
Line: #9
Type: E_ERROR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace r3pt1s\bansystem\handler;

use pocketmine\player\Player;
use r3pt1s\bansystem\manager\ban\BanManager;
use r3pt1s\bansystem\util\Utils;

class BanHandler implements IHandler {

public function handle(Player $player): ?string {
if ($player->hasPermission("bansystem.bypass.ban")) return null;
if (!BanManager::getInstance()->isBanned($player)) return null;
if (($ban = BanManager::getInstance()->getBan($player)) !== null) {
return "§8» §cYou have been §lbanned §r§8«\n§8» §7Reason: §e" . $ban->getReason() . "\n§8» §7Remaining time: §e" . ($ban->getExpire() === null ? "§c§lPERMANENTLY" : Utils::diffString(new \DateTime(), $ban->getExpire()));
}
return null;
}
}

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show