menu
#7862235 A void function must not return a value

Submitted by PocketMine-MP 4.10.0

General information

Version: 4.10.0
Git commit: 0d5287bf
Plugin involvement: Direct
Report date: 2022-11-24 12:46:53 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.1.11
JIT status: Disabled
Operating system: win
System banner: Windows NT DESKTOP-HKQ4RR5 10.0 build 19044 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: A void function must not return a value
File: plugins/essentialsTP_v1.2.2/src/essentialsTP/essentialsTP
Line: #71
Error level: E_COMPILE_ERROR
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81

$i = 0;

while($res = $this->result->fetchArray(SQLITE3_ASSOC)){

$row[$i] = $res;
$i++;

}
return $row;
}

public function onLoad(): void {

}

public function update_cooldown($name, $time, $type){
$this->prepare = $this->db2->prepare("SELECT home,warp,spawn,player FROM cooldowns WHERE player =:name");
$this->prepare->bindValue(":name", $name, SQLITE3_TEXT);
$this->result = $this->prepare->execute();

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show