Add Method

This commit is contained in:
RayzsYT committed 2024-06-02 03:34:43 +02:00
1 parent 777dde6c54
commit c94a419c14
1 file changed
+9
@@ -13,6 +13,15 @@ public class TinyGroup implements Serializable {
this.commands = commands;
}
public void add(String command) {
if(this.commands.contains(command)) return;
this.commands.add(command);
}
public void addAll(List<String> commands) {
commands.forEach(this::add);
}
public String getGroupName() {
return groupName;
}