menu
#5039207 Cannot redeclare WarpAnimation\Main::onCommand()

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 23:04:30 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 1 seconds

System Information

PHP version: 7.4.20
Operating system: win
System banner: Windows NT DESKTOP-1CQTH7O 10.0 build 19043 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot redeclare WarpAnimation\Main::onCommand()
File: plugins/WarpAnimation_v2.1/src/WarpAnimation/Main
Line: #258
Error level: E_COMPILE_ERROR
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
			if($form->isRecipient($player)){
unset($this->forms[$id]);

return true;
}
break;
}
return true;
}
public function onCommand(CommandSender $sender, Command $command, String $label, Array $args) : bool
{
switch ($command){
case "sa":
if($sender instanceof Player){
if(count($args) == 1){
$effectId = (int)$args[0];
$this->showOnScreenAnimation($sender, $effectId);
}
}
break;

Loaded Plugins

  • Show

Server Settings

  • Show