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

error #37

Open
FlynnKunz opened this issue May 10, 2022 · 0 comments
Open

error #37

FlynnKunz opened this issue May 10, 2022 · 0 comments

Comments

@FlynnKunz
Copy link

PocketMine-MP Crash Dump Tue May 10 21:55:29 UTC 2022

PocketMine-MP version: 4.3.2 [Protocol 503]
Git commit: 755ca1af9b1b69226a6ed4597dc947aeec8088fe
PHP version: 8.0.18
OS: Linux, linux

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: 1vs1-PM4

Error: vixikhd\onevsone\arena\ArenaScheduler::__construct(): Argument #1 ($plugin) must be of type vixikhd\onevsone\arena\Arena, vixikhd\onevsone\OneVsOne given, called in phar:///home/container/plugins/1vs1 (1).phar/src/vixikhd/onevsone/OneVsOne.php on line 68
File: plugins/1vs1 (1).phar/src/vixikhd/onevsone/arena/ArenaScheduler
Line: 59
Type: TypeError
Backtrace:
#0 plugins/1vs1 (1).phar/src/vixikhd/onevsone/OneVsOne(68): vixikhd\onevsone\arena\ArenaScheduler->__construct(object vixikhd\onevsone\OneVsOne#25426)
#1 pmsrc/src/plugin/PluginBase(137): vixikhd\onevsone\OneVsOne->onEnable()
#2 pmsrc/src/plugin/PluginManager(445): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1386): pocketmine\plugin\PluginManager->enablePlugin(object vixikhd\onevsone\OneVsOne#25426)
#4 pmsrc/src/Server(1012): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#24903)
#5 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#6 pmsrc/src/PocketMine(327): pocketmine\server()
#7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Code:
[50] public $restartTime = 10;
[51]
[52] /** @var array $restartData /
[53] public $restartData = [];
[54]
[55] /
*
[56] * ArenaScheduler constructor.
[57] * @param Arena $plugin
[58] /
[59] public function __construct(Arena $plugin) {
[60] $this->plugin = $plugin;
[61] }
[62]
[63] /
*
[64]
[65] */
[66] public function onRun(): void {
[67] $this->reloadSign();
[68]
[69] if($this->plugin->setup) return;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant