menu
#3761471 Cannot use temporary expression in write context

Submitted by PocketMine-MP 3.11.4

General information

Version: 3.11.4
Git commit: 13f28d84
Plugin involvement: Direct
Report date: 2020-02-13 12:32:28 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux sksfeel12.cafe24.com 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64

Error information

Warning: the PT plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot use temporary expression in write context
File: plugins/PT.phar/src/pt/form/quest/ListForm
Line: #36
Error level: E_COMPILE_ERROR
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
		if($q['eventquest']['name'] != ''){
$text = '§l§a[§r§f이벤트§l§a]§r§f '.$q['eventquest']['name'];
array_push($buttons, ['text'=>$text]);
}
$packet->formData = self::createFormData(
self::PhantomTale_WHITE.'퀘스트 목록',
self::BPGRAY.'내용을 확인하실 퀘스트를 선택해주세요',
$buttons
);
self::sendedData[$player->getName()] = $buttons;
$player->sendDataPacket($packet);
}
public function sendFormToOp(Player $player){
$qd = QuestData::getInstance();
$pd = PlayerData::getInstance();
$packet = self::packet();
$packet->formId = self::QUEST_LIST_FOR_OP;
$buttons = [];
foreach($qd->getFiles($qd->getDataFolder()) as $f){
array_push($buttons, ['text'=>str_replace('.yml', '', $f)]);

Loaded Plugins

  • Show

Server Settings

  • Show