We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2235026 commit 1b0f101Copy full SHA for 1b0f101
README.md
@@ -220,18 +220,7 @@ class MyCustomForm extends CustomForm{
220
221
$this->addEntry(new LabelEntry("Are you sure you'd like to commit /suicide? You will lose all your inventory contents."));
222
$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
- );
+ $this->addEntry(new InputEntry("", "Type YES here"));
235
}
236
237
public function onSubmit(Player $player, array $array) : void{
0 commit comments