menu
#5038840 Call to undefined method pocketmine\command\ConsoleCommandSender::teleport()

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 06:35:02 +0000 UTC
Server uptime: 0 days 0 hours 10 minutes 39 seconds

System Information

PHP version: 7.4.21
Operating system: linux
System banner: Linux 57f3cd97-a300-4823-8d22-ec75336f3583 5.8.0-1038-aws #40~20.04.1-Ubuntu SMP Thu Jun 17 13:25:28 UTC 2021 x86_64

Error information

Warning: the OmegaCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\command\ConsoleCommandSender::teleport()
File: plugins/OmegaCore_v1.phar/src/System/Server
Line: #38
Error level: Error
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    }

public function onLoad(){
$this->getLogger()->info("Dependencias: FormAPI, KDR, PureChat, PurePerms, EconomyAPI");
}

public function onCommand(CommandSender $pl, Command $cmd, string $label, array $args): bool {
switch($cmd->getName()){
case "hub":
$pl->teleport($this->getServer()->getDefaultLevel()->getSafeSpawn(),0,0);
$pl->getInventory()->clearAll();
$pl->getArmorInventory()->clearAll();
$pl->setScale(1);
$pl->setGamemode(2);
$pl->setAllowFlight(false);
$pl->setHealth(20);
$pl->setFood(20);
$pl->getInventory()->setItem(0, Item::get(388, 3, 1)->setCustomName(Color::RED."Profile"));
$pl->getInventory()->setItem(1, Item::get(399, 0, 1)->setCustomName(Color::RED."Teleporter"));
$pl->getInventory()->setItem(2, Item::get(130, 0, 1)->setCustomName(Color::RED."Cosmetics"));
#0 pmsrc/src/pocketmine/command/PluginCommand(54): System\Server->onCommand(object pocketmine\command\ConsoleCommandSender, object pocketmine\command\PluginCommand, string[3] hub, array[0])
#1 pmsrc/src/pocketmine/command/SimpleCommandMap(248): pocketmine\command\PluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[3] hub, array[0])
#2 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[3] hub)
#3 plugins/SkyWarsForPE (1).phar/src/larryTheCoder/arena/task/SkyWarsTask(101): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[3] hub)
#4 plugins/SkyWarsForPE (1).phar/src/larryTheCoder/arena/api/task/ArenaTickTask(78): larryTheCoder\arena\task\SkyWarsTask->endTick()
#5 pmsrc/src/pocketmine/scheduler/TaskHandler(137): larryTheCoder\arena\api\task\ArenaTickTask->onRun(integer 12622)
#6 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 12622)
#7 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 12622)
#8 pmsrc/src/pocketmine/Server(2389): pocketmine\plugin\PluginManager->tickSchedulers(integer 12622)
#9 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#10 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#11 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#12 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#13 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#14 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show