menu
#4583487 Cannot redeclare Dandier\Main::openSpawner2()

Submitted by PocketMine-MP 3.15.2

General information

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

System Information

PHP version: 7.3.23
Operating system: linux
System banner: Linux 9d9da4b3-b7b8-443e-8529-4c15aeefae3a 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare Dandier\Main::openSpawner2()
File: plugins/SpawnerGUI_And_OreSpawnerGUI.phar/src/ItzApipAjalah/Main
Line: #205
Error level: E_COMPILE_ERROR
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
        $inventory->setItem(21, Item::get(160, 1, 1)->setCustomName("---"));
$inventory->setItem(22, Item::get(160, 1, 1)->setCustomName("---"));
$inventory->setItem(23, Item::get(160, 1, 1)->setCustomName("---"));
$inventory->setItem(24, Item::get(160, 1, 1)->setCustomName("---"));
$inventory->setItem(25, Item::get(160, 1, 1)->setCustomName("---"));
$inventory->setItem(26, Item::get(160, 1, 1)->setCustomName("---"));
$this->spawner->send($sender);
}

public function openSpawner2(Player $sender, Item $item){
$this->eco = $this->getServer()->getPluginManager()->getPlugin("EconomyAPI");
$hand = $sender->getInventory()->getItemInHand()->getCustomName();
$inventory = $this->spawner->getInventory();
if($item->getId() == 160){
$sender->sendMessage("§cthnks for use, plugin by ItzApipAjalah" /** sorry plugin ini belum terlalu stabil, karena saya belum terbiasa di plugin gui */ );
}
if($item->getId() == 35 && $item->getDamage() == 0){
$money = $this->eco->myMoney($sender);
if($money >= 200000){
$this->eco->reduceMoney($sender, "200000");

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies