Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Crashes When Selecting 2nd Position. (Duplicated issue of #5) #7

Open
MineGuy112 opened this issue Oct 10, 2020 · 4 comments
Open
Labels
duplicate This issue or pull request already exists

Comments

@MineGuy112
Copy link

Hi there,

Just came here to make an issue about the plugin crashing the server when I select the 2nd position.

Here's some info:

PocketMine-MP Crash Dump Sat Oct 10 12:34:30 UTC 2020

Error: Call to a member function getPlayers() on null
File: plugins/FootJob.phar/src/Tungsten/FootJob/RepeatingTask
Line: 32
Type: Error

Code:
[23] }
[24]
[25]
[26] public function onRun($tick)
[27] {
[28] $internalConfig = $this->config->getAll();
[29] if (!is_array($internalConfig) or count($internalConfig) <= 0) return;
[30] foreach ($internalConfig as $value) {
[31] if(!is_array($value)) continue;
[32] $players = $this->fj->getServer()->getLevelByName($value["level"])->getPlayers(); (Error Is Here)
[33] if ($players == []) continue;
[34] $x1 = $value["x"][0][0];
[35] $x2 = $value["x"][0][1];
[36] $y1 = $value["y"][0][0];
[37] $y2 = $value["y"][0][1];
[38] $z1 = $value["z"][0][0];
[39] $z2 = $value["z"][0][1];
[40] foreach ($players as $player) {
[41] if ($this->isInside($x1, $x2, $y1, $y2, $z1, $z2, $player)) {
[42] if (isset($value["consolecmds"])) {

Backtrace:
#0 src/pocketmine/scheduler/TaskHandler(137): Tungsten\FootJob\RepeatingTask->onRun(integer 1)
#1 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1)
#2 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#3 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#4 src/pocketmine/Server(2154): pocketmine\Server->tick()
#5 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1588): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-41203/, string[23] /home/gs-41203/plugins/)
#8 src/pocketmine/PocketMine(304): pocketmine\server()
#9 (11): require(string[95] phar:///pro/bin/mcpe/pocketmine-stable-1.16.20/PocketMine-MP.phar/src/pocketmine)

@janiiik
Copy link

janiiik commented Oct 10, 2020

This is duplicate.. i have mentioned this error week ago. Dont worry I have solution for you.. Forget about this plugin you will not get support here. Install Festival plugin instead you get simillar functions.

@MineGuy112
Copy link
Author

Oh.. Alright then! Tysm @janiiik!!
<3

@AngelliaX
Copy link
Owner

i did ask for more information about the issue in #5
and i consumed that the error happened because the world had not loaded before you entered the portal, or the world got corrupted
can you check if i was right ^^^

and sorry that i cant help u guys, i'll come back to minecraft in july next year, <3

@AngelliaX AngelliaX added the duplicate This issue or pull request already exists label Oct 10, 2020
@AngelliaX AngelliaX changed the title Server Crashes When Selecting 2nd Position. Server Crashes When Selecting 2nd Position. (Duplicated issue of #5) Oct 10, 2020
@YaNIND
Copy link

YaNIND commented Aug 16, 2021

check new pull requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants