menu
#3547967 Call to undefined method onebone\economyapi\EconomyAPI::getCps()

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-01-13 21:16:17 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux 7659d0ca-7725-4772-ade0-eca375c641fd 5.0.0-1028-gcp #29~18.04.1-Ubuntu SMP Thu Dec 19 19:04:05 UTC 2019 x86_64

Error information

Warning: the Sumo plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method onebone\economyapi\EconomyAPI::getCps()
File: plugins/Sumo-4.phar/src/jack/sumo/Task/HudSUMO
Line: #49
Error level: Error
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    {
$world = Server::getInstance()->getLevelByName("pvp3");
if ($world instanceof Level) {
$players = $world->getPlayers();
foreach ($players as $pl) {
$name = $pl->getName();
$jugadores = count(Server::getInstance()->getLevelByName("pvp3")->getPlayers());
$api = Scoreboards::getInstance();
$ping = $pl->getPing();
$cps = $this->plugin->getServer()->getPluginManager()->getPlugin("EconomyAPI")->getCps($pl);
$api->new($pl, "pvp3", TextFormat::BOLD . '§l§6SpartCraft');
$api->setLine($pl, 1, TextFormat::GOLD . "Nick: " . TextFormat::GRAY . $name);
$api->setLine($pl, 2, TextFormat::GOLD . "Rank: " . TextFormat::RED . $rank);
$api->setLine($pl, 3, TextFormat::RED . "§c");
$api->setLine($pl, 4, TextFormat::GOLD . "Money: " . TextFormat::GRAY . $money);
$api->setLine($pl, 5, TextFormat::GOLD . "Ping: " . TextFormat::YELLOW . $ping);
$api->setLine($pl, 6, TextFormat::GOLD . "§f");
$api->setLine($pl, 7, TextFormat::GOLD . "§c");
$api->setLine($pl, 8, TextFormat::WHITE . "§•§l§fspartcraft.ddns.net 19164");
$api->getObjectiveName($pl);
#0 src/pocketmine/scheduler/TaskHandler(159): jack\sumo\Task\HudSUMO->onRun(integer 1681)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1681)
#2 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1681)
#3 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 1681)
#4 src/pocketmine/Server(2346): pocketmine\Server->tick()
#5 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1785): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#8 src/pocketmine/PocketMine(291): pocketmine\server()
#9 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show