menu
#4219821 Cannot declare class amber\amberPVP\JobForm because the name is already in use

Submitted by PocketMine-MP 3.12.2

General information

Version: 3.12.2
Git commit: 9b6b3f50
Plugin involvement: Direct
Report date: 2020-05-23 02:06:07 +0000 UTC

System Information

PHP version: 7.3.18
Operating system: win
System banner: Windows NT DESKTOP-6FV7IAI 10.0 build 18362 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot declare class amber\amberPVP\JobForm because the name is already in use
File: plugins/amberPVP/src/amber/amberPVP/Main
Line: #227
Error level: E_COMPILE_ERROR
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
        $player->teleport($pos);
$player->getInventory()->clearAll();
$this->damages[$name] = 0;
$this->fighting[$name] = false;
}

}

//sendForm関数を使うには、Formを継承したクラスを作る必要があります
class JobForm implements Form{
public function __construct(){

}

//プレイヤーがFormをクリックした後に呼ばれる関数
//ここに処理を書く
//$dataには、クリックしたArrayのキーが入ります
public function handleResponse(Player $player, $data) : void{
$player->sendMessage((string) $data);
}

Loaded Plugins

  • Show

Server Settings

  • Show