pjz9n-pm-pl / Mission

Give the player a mission!
GNU General Public License v3.0
15 stars 8 forks source link

Opening the /mission edit causing crash #5

Closed Adam1609 closed 4 years ago

Adam1609 commented 4 years ago

Here is the crash problem

Error: Declaration of pjz9n\mission\form\setting\SettingMissionCompleteMessageForm::onSubmit(pocketmine\Player $player, pjz9n\mission\libs\dktapps\pmforms\CustomFormResponse $response): void must be compatible with pjz9n\mission\libs\pjz9n\pmformsaddon\AbstractCustomForm::onSubmit(pocketmine\Player $player, dktapps\pmforms\CustomFormResponse $response): void File: plugins/Mission_1.0.1.phar/src/pjz9n/mission/form/setting/SettingMissionCompleteMessageForm Line: 36 Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: Mission v1.0.1

Code: [27] use pjz9n\mission\libs\dktapps\pmforms\element\Label; [28] use pjz9n\mission\libs\dktapps\pmforms\element\Toggle; [29] use pjz9n\mission\form\Elements; [30] use pjz9n\mission\form\generic\MessageForm; [31] use pjz9n\mission\language\LanguageHolder; [32] use pjz9n\mission\Main; [33] use pjz9n\mission\libs\pjz9n\pmformsaddon\AbstractCustomForm; [34] use pocketmine\Player; [35] [36] class SettingMissionCompleteMessageForm extends AbstractCustomForm [37] { [38] public function construct() [39] { [40] parent::construct( [41] LanguageHolder::get()->translateString("setting.missioncomplete.message"), [42] [ [43] new Label( [44] "detail", [45] LanguageHolder::get()->translateString("setting.missioncomplete.message.detail") [46] ),

PJZ9n commented 4 years ago

Thank you for reporting the issue! This bug has been fixed in 1.0.2 Release.