Renamed stuff in pom and changed to appendTemplate
This commit is contained in:
parent
6baf52b248
commit
31cde0bba0
4
pom.xml
4
pom.xml
|
|
@ -4,9 +4,9 @@
|
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.example</groupId>
|
||||
<groupId>com.alttd</groupId>
|
||||
<artifactId>ShutdownInfo</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>1.0</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>16</maven.compiler.source>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||
public class WhitelistKickEvent {
|
||||
private final Player player;
|
||||
private String message;
|
||||
List<Template> templates;
|
||||
private final List<Template> templates;
|
||||
|
||||
public WhitelistKickEvent(Player player, String message, List<Template> templates) {
|
||||
this.player = player;
|
||||
|
|
@ -28,6 +28,5 @@ public class WhitelistKickEvent {
|
|||
return Collections.unmodifiableList(templates);
|
||||
}
|
||||
|
||||
public void appendTemplates(Template template) {this.templates.add(template);}
|
||||
// public void appendTemplates(Template... templates) {this.templates.addAll(List.of(templates));}
|
||||
public void appendTemplate(Template template) {this.templates.add(template);}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user