Skip to content

Commit 1b0f101

Browse files
authored
Ok
1 parent 2235026 commit 1b0f101

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

README.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,7 @@ class MyCustomForm extends CustomForm{
220220
221221
$this->addEntry(new LabelEntry("Are you sure you'd like to commit /suicide? You will lose all your inventory contents."));
222222
$this->addEntry(new LabelEntry("Type " . TextFormat::BOLD . "YES" . TextFormat::RESET . "below to confirm!");
223-
224-
225-
$this->addEntry(
226-
new InputEntry("", "Type YES here"),
227-
function(Player $player, InputEntry $entry, string $value) : void{
228-
if($value === "YES"){
229-
$player->getServer()->dispatchCommand($player, "kill");
230-
}else{
231-
$player->sendMessage("Suicide aborted.");
232-
}
233-
}
234-
);
223+
$this->addEntry(new InputEntry("", "Type YES here"));
235224
}
236225
237226
public function onSubmit(Player $player, array $array) : void{

0 commit comments

Comments
 (0)