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

Commit e3fba11

Browse files
author
qPexLegendary
committed
Updated pom.xml
1 parent 6d2606f commit e3fba11

6 files changed

Lines changed: 23 additions & 6 deletions

File tree

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,26 @@
88
<artifactId>FormAPI</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

11+
<build>
12+
<plugins>
13+
<plugin>
14+
<groupId>org.apache.maven.plugins</groupId>
15+
<artifactId>maven-compiler-plugin</artifactId>
16+
<configuration>
17+
<source>8</source>
18+
<target>8</target>
19+
</configuration>
20+
</plugin>
21+
</plugins>
22+
</build>
23+
24+
<repositories>
25+
<repository>
26+
<id>nukkitx</id>
27+
<url>https://repo.nukkitx.com/main</url>
28+
</repository>
29+
</repositories>
30+
1131
<dependencies>
1232
<dependency>
1333
<groupId>cn.nukkit</groupId>

src/main/java/ru/nukkitx/events/EventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void formResponded(PlayerFormRespondedEvent event) {
4444
}
4545

4646
if (window instanceof FormWindowCustom) {
47-
data = new ArrayList(((FormResponseCustom) response).getResponses().values());
47+
data = new ArrayList<>(((FormResponseCustom) response).getResponses().values());
4848
Form.playersForm.get(player.getName()).handle(player, window, data, Form.paramsForm.get(player.getName()));
4949
return;
5050
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import java.util.HashMap;
77

88
public abstract class Form {
9-
public static HashMap<String, FormResponse> playersForm = new HashMap();
10-
public static HashMap<String, HashMap<String, Object>> paramsForm = new HashMap();
9+
public static HashMap<String, FormResponse> playersForm = new HashMap<>();
10+
public static HashMap<String, HashMap<String, Object>> paramsForm = new HashMap<>();
1111
protected FormWindow form;
1212

1313
public final void send(Player player) {

src/main/java/ru/nukkitx/forms/elements/CustomForm.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package ru.nukkitx.forms.elements;
22

33
import cn.nukkit.form.element.*;
4-
import cn.nukkit.form.window.FormWindow;
54
import cn.nukkit.form.window.FormWindowCustom;
65
import ru.nukkitx.forms.Form;
76

src/main/java/ru/nukkitx/forms/elements/ModalForm.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package ru.nukkitx.forms.elements;
22

3-
import cn.nukkit.form.window.FormWindow;
43
import cn.nukkit.form.window.FormWindowModal;
54
import ru.nukkitx.forms.Form;
65

src/main/java/ru/nukkitx/forms/elements/SimpleForm.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import cn.nukkit.form.element.ElementButton;
44
import cn.nukkit.form.element.ElementButtonImageData;
5-
import cn.nukkit.form.window.FormWindow;
65
import cn.nukkit.form.window.FormWindowSimple;
76
import ru.nukkitx.forms.Form;
87

0 commit comments

Comments
 (0)