menu
#4583568 Cannot redeclare lobby\Main::sizeui()

Submitted by PocketMine-MP 3.15.2

General information

Version: 3.15.2
Git commit: d7a66ad7
Plugin involvement: Direct
Report date: 2020-10-18 04:02:01 +0000 UTC

System Information

PHP version: 7.3.23
Operating system: win
System banner: Windows NT JAHIRORVAS-PC 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare lobby\Main::sizeui()
File: plugins/Project/src/lobby/Main
Line: #497
Error level: E_COMPILE_ERROR
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
      });
$form->setTitle("Size");
$form->setContent("Modifica tu tamaño");
$form->addButton("Pequeño\n§r§7Serás Pequeño");
$form->addButton("Normal\n§r§7Serás Normal");
$form->addButton("Grande\n§r§7Serás Grande");
$form->addButton("Volver",0,"textures/ui/refresh_light");
$form->sendToPlayer($player);
}
function sizeui($player){
$form = new SimpleForm(function(Player $player, int $data = null ){
$result = $data;
if($result === null){
return true;
}
switch ($result) {
case 0:

$player->setGamemode(0);
$player->sendMessage(Main::PREFIX.TE::AQUA."Tu modo de juego ahora es:".TE::BLUE." Survival");

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies