menu
#2824718 A void function must not return a value (did you mean "return;" instead of "return null;"?)

Submitted by PocketMine-MP 3.9.2

General information

Version: 3.9.2
Git commit: 7a747d6f
Plugin involvement: Direct
Report date: 2019-09-11 13:47:40 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: win
System banner: Windows NT LAPTOP-0A0QM4LJ 10.0 build 18362 (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 (did you mean "return;" instead of "return null;"?)
File: plugins/TeaSpoon/src/CortexPE/TeaSpoon/module/impl/Anvils
Line: #87
Error level: E_COMPILE_ERROR
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
						$action->windowId == NetworkInventoryAction::SOURCE_TYPE_ANVIL_MATERIAL ||
$action->windowId == NetworkInventoryAction::SOURCE_TYPE_ANVIL_OUTPUT ||
$action->windowId == NetworkInventoryAction::SOURCE_TYPE_ANVIL_RESULT
)
) {
$inv = $player->getWindow(self::FORCED_WINDOW_ID);
if(!($inv instanceof AnvilInventory)){
$this->getPlugin()->getLogger()->debug("Player " . $player->getName() . " has no open anvil inventory");

return null;
}
switch($action->windowId){
case NetworkInventoryAction::SOURCE_TYPE_ANVIL_INPUT:
$action->inventorySlot = 0;
break;
case NetworkInventoryAction::SOURCE_TYPE_ANVIL_MATERIAL:
$action->inventorySlot = 1;
break;
case NetworkInventoryAction::SOURCE_TYPE_ANVIL_OUTPUT:
$inv->sendSlot(2, $inv->getViewers());

Loaded Plugins

  • Show

Server Settings

  • Show