Code: [19:45:02] [Server thread/CRITICAL]: ErrorException: "Use of undefined constant basedamage - assumed 'basedamage' (this will throw an Error in a future version of PHP)" (EXCEPTION) in "plugins/SkyMsg/src/Msg/item/Epee" at line 42 [19:45:02] [Server thread/DEBUG]: #0 plugins/SkyMsg/src/Msg/item/Epee(42): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string Use of undefined constant basedamage - assumed 'basedamage' (this will throw an Error in a future version of PHP), string /home/Faction2/plugins/SkyMsg/src/Msg/item/Epee.php, integer 42, array Array()) PHP: public function getDamage($event , $player, int $basedamage ) { $event->setModifier($basedamage,14); Someone can help me for fix this error ? ??
I don't think that error and the code you provided correlate, or maybe you've fixed the error yourself. The code is fine. My assumption is you didn't have a "$" before your "basedamage" initially, which made PHP render it as a global constant.