menu
#2825353 Cannot redeclare DeathNPC\Main::onCommand()

Submitted by PocketMine-MP 3.9.0

General information

Version: 3.9.0
Git commit: bd69c66d
Plugin involvement: Direct
Report date: 2019-09-11 18:14:06 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: win
System banner: Windows NT LENOVO-PC 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 redeclare DeathNPC\Main::onCommand()
File: plugins/DeathNPC-master/src/DeathNPC/Main
Line: #80
Error level: E_COMPILE_ERROR
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
				 }
}
$sender->sendMessage("l4Alle DeathNPCEntitys wurden entfernt");

return true;
}
return true;
}

public function onCommand(CommandSender $sender, Command $command, String $label, array $args) : bool {
switch($command->getName()){
case "npc clear":
$player = $event->getPlayer();
$nbt = new CompoundTag("", [
new ListTag("Pos", [
new DoubleTag("", $player->getX()),
new DoubleTag("", $player->getY() - 1),
new DoubleTag("", $player->getZ())
]),
new ListTag("Motion", [

Loaded Plugins

  • Show

Server Settings

  • Show