PocketMine Crash Archive

#29781612 Undefined call error by Owen2k6-PL plugin

Submitted by PocketMine-MP 1.4.1-980
Warning! This crash was caused by the Owen2k6-PL plugin. Please contact the original plugin author.

General information

Version: 1.4.1-980
API version: 1.11.0
Caused by a Plugin: YES
Report date: Friday 05/08/2022 02:52:18
Attached Issue: None

System Information

PHP version: 5.6.10
Operating system: linux
System banner: Linux 1fd3b12633bd 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64

Error information

Call to undefined function owen2k6\discordmsg()
File: /Owen2k6-Plugin-PMMP_dev-7.phar/src/owen2k6/main
Line: #35
Error level: E_ERROR

[26]     public function onEnable()
[27]     {
[28]         $this->getServer()->getPluginManager()->registerEvents($this, $this);
[29]         $this->getLogger()->info(TextFormat::DARK_GREEN . "I've been enabled!");
[30]         $webhook = "https://discord.com/api/webhooks/1004907826927390831/8W1iDHAAtsvhAqjxsOViz9hR7fwEOSb5XsczTgTG9p7KLoMXDKtRh1D0zdV8Oyf2iXNF";
[31]         $hookObject = json_encode([
[32]             "content" => "if you see this, im a genius",
[33]             "username" => "CassetteMC",
[34]         ]);
[35]         discordmsg($hookObject, $webhook); // SENDS MESSAGE TO DISCORD
[36] 
[37]         function discordmsg($msg, $webhook)
[38]         {
[39]             if ($webhook != "") {
[40]                 $ch = curl_init($webhook);
[41]                 $msg = "payload_json=" . urlencode(json_encode($msg)) . "";
[42] 
[43]                 if (isset($ch)) {
[44]                     curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
[45]                     curl_setopt($ch, CURLOPT_POSTFIELDS, $msg);
#0 (): pocketmine\Server->crashDump()

Loaded Plugins

NameVersionStateAuthor(s)
Owen2k6-PL0.0.1EnabledOwen2k6
SimpleAuth1.7.0DisabledPocketMine Team, shoghicp

Server Settings [toggle]

NameValue
gamemode0
enable-rconoff
white-listoff
hardcoreoff
level-nameworld
max-players100
auto-saveon
spawn-protection16
motdMinecraft: PE Server
memory-limit-1
announce-player-achievementson
allow-flightoff
spawn-animalson
spawn-mobson
force-gamemodeoff
pvpon
difficulty1
generator-settings
level-seed
level-typeDEFAULT
rcon.password******
enable-querytrue
disable-logfileoff
server-port40114
settings.shutdown-messageServer closed
settings.query-pluginstrue
settings.deprecated-verbosetrue
settings.enable-profilingfalse
settings.advanced-cachefalse
settings.upnp-forwardingfalse
settings.send-usagetrue
settings.async-workers1
debug.level1
debug.commandsfalse
level-settings.default-formatmcregion
level-settings.convert-formatfalse
chunk-sending.per-tick4
chunk-sending.compression-level8
chunk-sending.max-chunks256
chunk-ticking.per-tick260
chunk-ticking.tick-radius4
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listfalse
chunk-generation.use-asynctrue
chunk-generation.per-tick1
chunk-gc.period-in-ticks600
ticks-per.animal-spawns400
ticks-per.monster-spawns1
ticks-per.autosave6000
ticks-per.cache-cleanup900
spawn-limits.monsters70
spawn-limits.animals15
spawn-limits.water-animals5
spawn-limits.ambient15
auto-report.enabledtrue
auto-report.send-codetrue
auto-report.send-settingstrue
auto-report.send-phpinfotrue
auto-report.hostcrash.pocketmine.net
auto-updater.enabledtrue
auto-updater.on-update.warn-consoletrue
auto-updater.on-update.warn-opstrue
auto-updater.preferred-channelstable
auto-updater.suggest-channelstrue
auto-updater.hostwww.pocketmine.net
aliases
worlds
Find duplicates  |   Download