menu
#5777522 Array and string offset access syntax with curly braces is no longer supported

Submitted by PocketMine-MP 3.26.5

General information

Version: 3.26.5
Git commit: a4af1609
Plugin involvement: Direct
Report date: 2022-01-14 23:42:07 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux ip135-148-6-172 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Array and string offset access syntax with curly braces is no longer supported
File: plugins/AntiSpamPro.phar/src/awzaw/antispampro/AntiSpamPro
Line: #162
Error level: E_COMPILE_ERROR
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
     * @param PlayerCommandPreprocessEvent $event
*
* @priority LOWEST
*/

public function onPlayerCommand(PlayerCommandPreprocessEvent $event) {
if ($event->isCancelled() || $event->getPlayer()->isClosed()) return;
if (($sender = $event->getPlayer())->hasPermission("asp.bypass")) return;
$message = $event->getMessage();
if ($message{0} != "/") {
return;
}
if (isset($this->players[spl_object_hash($sender)]) && (time() - $this->players[spl_object_hash($sender)]["time"] <= intval($this->getConfig()->get("delay")))) {
$this->players[spl_object_hash($sender)]["time"] = time();
$this->players[spl_object_hash($sender)]["warnings"] = $this->players[spl_object_hash($sender)]["warnings"] + 1;

if ($this->players[spl_object_hash($sender)]["warnings"] === $this->getConfig()->get("warnings")) {
$sender->sendMessage(TEXTFORMAT::RED . $this->getConfig()->get("lastwarning"));
$event->setCancelled(true);
return;

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show