Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 5e2100b

Browse files
author
qPexLegendary
committed
Добавлена перегрузка метода send(), не имеющая обратный вызов
1 parent a3ecebb commit 5e2100b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/ru/nukkitx/forms/Form.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ public abstract class Form {
1010
public static HashMap<String, HashMap<String, Object>> paramsForm = new HashMap();
1111
protected FormWindow form;
1212

13+
public final void send(Player player) {
14+
playersForm.remove(player.getName());
15+
paramsForm.remove(player.getName());
16+
player.showFormWindow(form);
17+
}
18+
1319
public final void send(Player player, FormResponse response) {
1420
playersForm.put(player.getName(), response);
1521
paramsForm.put(player.getName(), null);

0 commit comments

Comments
 (0)