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 Loading Plugin #12

Open
xKurt opened this issue Jun 17, 2021 · 0 comments
Open

Error Loading Plugin #12

xKurt opened this issue Jun 17, 2021 · 0 comments

Comments

@xKurt
Copy link

xKurt commented Jun 17, 2021

PocketMine-MP Crash Dump Thu Jun 17 06:33:14 UTC 2021

Error: Array and string offset access syntax with curly braces is deprecated
File: plugins/AntiSpamPro.phar/src/awzaw/antispampro/AntiSpamPro
Line: 162
Type: ErrorException

THIS CRASH WAS CAUSED BY A PLUGIN

Code:
[153] * @param PlayerCommandPreprocessEvent $event
[154] *
[155] * @priority LOWEST
[156] */
[157]
[158] public function onPlayerCommand(PlayerCommandPreprocessEvent $event) {
[159] if ($event->isCancelled() || $event->getPlayer()->isClosed()) return;
[160] if (($sender = $event->getPlayer())->hasPermission("asp.bypass")) return;
[161] $message = $event->getMessage();
[162] if ($message{0} != "/") {
[163] return;
[164] }
[165] if (isset($this->players[spl_object_hash($sender)]) && (time() - $this->players[spl_object_hash($sender)]["time"] <= intval($this->getConfig()->get("delay")))) {
[166] $this->players[spl_object_hash($sender)]["time"] = time();
[167] $this->players[spl_object_hash($sender)]["warnings"] = $this->players[spl_object_hash($sender)]["warnings"] + 1;
[168]
[169] if ($this->players[spl_object_hash($sender)]["warnings"] === $this->getConfig()->get("warnings")) {
[170] $sender->sendMessage(TEXTFORMAT::RED . $this->getConfig()->get("lastwarning"));
[171] $event->setCancelled(true);
[172] return;

Backtrace:
#0 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(138): pocketmine\utils\Utils::errorExceptionHandler(integer 8192, string[69] Array and string offset access syntax with curly braces is deprecated, string[85] phar:///home/container/plugins/AntiSpamPro.phar/src/awzaw/antispampro/AntiSpamPr, integer 162, array[2])
#1 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(138): include()
#2 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[29] awzaw\antispampro\AntiSpamPro)
#3 (): BaseClassLoader->{closure}(string[29] awzaw\antispampro\AntiSpamPro)
#4 (): spl_autoload_call(string[29] awzaw\antispampro\AntiSpamPro)
#5 pmsrc/src/pocketmine/plugin/PluginManager(167): class_exists(string[29] awzaw\antispampro\AntiSpamPro, boolean 1)
#6 pmsrc/src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[40] /home/container/plugins/AntiSpamPro.phar, array[2])
#7 pmsrc/src/pocketmine/Server(1529): pocketmine\plugin\PluginManager->loadPlugins(string[24] /home/container/plugins/)
#8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#10 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.21.0 [Protocol 440]

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