menu
#4550161 Call to undefined method core\player\NexusPlayer::getRank()

Submitted by PocketMine-MP 3.15.1

General information

Version: 3.15.1
Git commit: 9f604842
Plugin involvement: Direct
Report date: 2020-09-26 16:20:04 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux ns556347 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64

Error information

Warning: the NexusPPvP plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method core\player\NexusPlayer::getRank()
File: plugins/NexusPPvP.phar/src/core/command/types/ListCommand
Line: #124
Error level: Error
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
            }
}
$times = (int)round((count($youtubers) / $onlinePlayers) * 20);
$sender->sendMessage(TextFormat::DARK_GRAY . "[" . TextFormat::WHITE . str_repeat("|", $times) . TextFormat::GRAY . str_repeat("|", 20 - $times) . TextFormat::DARK_GRAY . "] " . Translation::getMessage("listMessage", [
"group" => TextFormat::WHITE . "You" . TextFormat::RED . "Tubers",
"count" => TextFormat::DARK_GRAY . "(" . TextFormat::BOLD . TextFormat::RED . count($youtubers) . TextFormat::RESET . TextFormat::DARK_GRAY . ")",
"list" => TextFormat::WHITE . $list
]));
$list = "";
foreach($staffs as $staff) {
if(empty($list)) {
$list .= $staff->getRank()->getColoredName() . " " . TextFormat::RESET . TextFormat::WHITE . $staff->getName();
}
else {
$list .= ", " . $staff->getRank()->getColoredName() . " " . TextFormat::RESET . TextFormat::WHITE . $staff->getName();
}
}
$times = (int)round((count($staffs) / $onlinePlayers) * 20);
$sender->sendMessage(TextFormat::DARK_GRAY . "[" . TextFormat::LIGHT_PURPLE . str_repeat("|", $times) . TextFormat::GRAY . str_repeat("|", 20 - $times) . TextFormat::DARK_GRAY . "] " . Translation::getMessage("listMessage", [
"group" => TextFormat::LIGHT_PURPLE . "Staffs",
#0 src/pocketmine/command/SimpleCommandMap(248): core\command\types\ListCommand->execute(object pocketmine\command\ConsoleCommandSender, string[4] list, array[0])
#1 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[4] list)
#2 src/pocketmine/Server(1423): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[4] list)
#3 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#4 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#5 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1601137204.2988)
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[23] /home/servers/practice/, string[31] /home/servers/practice/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[78] phar:///home/servers/practice/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies