menu
#235 Call to undefined method pocketmine\console\ConsoleCommandSender::getGroup()

Submitted by PocketMine-MP 5.18.1+dev.2056

General information

Version: 5.18.1+dev.2056
Git commit: 1967e201
Plugin involvement: Direct
Report date: 2024-09-27 21:49:55 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 6 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the GoCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method pocketmine\console\ConsoleCommandSender::getGroup()
File: plugins/GoCore/src/corndan/GoCore/commands/punish/BanCommand
Line: #91
Type: Error
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
        if (strtolower($playerName) === strtolower($sender->getName())) {
$error("username", "Вы не можете себя забанить!");
} else if (!AuthManager::getPlayer($playerName)) {
$error("username", "Игрок с данном ником не зарегистрирован");
}
$time = (int)array_shift($args);
if (!is_numeric($time) || ((int)$time < 1 && !$sender->hasPermission($this->getPermission() . ".permanent"))) {
$error("time", "Укажите время в минутах!");
} else {
$max = $isTeam ? 525600 : LimitsMain::getLimit($sender->getGroup())['ban_limit'] ?? 5;
if ($time > $max) {
$error("time", "Для вашей привилегии время бана не может быть меньше 1 минуты и больше {$max} минут!");
} else if ($time < 0) {
$time = null;
}
}
$global = $sender->hasPermission($this->getPermission() . ".global") && in_array("--global", $args, true);
if ($global) {
unset($args[array_search("--global", $args, true)]);
}
#0 plugins/GoCore/src/corndan/GoCore/GoCommand(44): corndan\GoCore\commands\punish\BanCommand->onCommand(object pocketmine\console\ConsoleCommandSender#52312, array[2], string[3] ban)
#1 pmsrc/src/command/SimpleCommandMap(214): corndan\GoCore\GoCommand->execute(object pocketmine\console\ConsoleCommandSender#52312, string[3] ban, array[4])
#2 pmsrc/src/Server(1492): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#52312, string[20] ban test 10 test ban)
#3 pmsrc/src/Server(1960): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#52312, string[20] ban test 10 test ban)
#4 pmsrc/src/Server(1800): pocketmine\Server->tick()
#5 pmsrc/src/Server(1117): pocketmine\Server->tickProcessor()
#6 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[25] /home/anmine/servers/s99/, string[33] /home/anmine/servers/s99/plugins/)
#7 pmsrc/src/PocketMine(378): pocketmine\server()
#8 /home/anmine/startup/tests/PocketMine-MP.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPl8MIQQ.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show