menu
#4656708 Cannot redeclare test\main::onClick()

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-21 20:24:13 +0000 UTC

System Information

PHP version: 7.3.21
Operating system: win
System banner: Windows NT CRABBYFEET 10.0 build 19041 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare test\main::onClick()
File: plugins/test/src/test/Main
Line: #51
Error level: E_COMPILE_ERROR
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
    }

public function onClick(PlayerInteractEvent $event){
$player = $event->getPlayer();
$item = $event->getItem();

$this->getServer()->broadcastMessage("jello MOTO ");
}

public function onClick(PlayerInteractEvent $event){
$player = $event->getPlayer();
$item = $event->getItem();

$this->getServer()->broadcastMessage("jello MOTO 2 ! ");
}
}

Loaded Plugins

  • Show

Server Settings

  • Show