@@ -106,6 +106,36 @@ public interface GroupProvider {
106106 @ Contract (value = "_, _ -> new" , mutates = "this" )
107107 WorldGroup createGroup (String name , Collection <World > worlds ) throws IllegalStateException ;
108108
109+ /**
110+ * Creates a new {@link WorldGroup} with the specified name, data, and a collection of worlds.
111+ * The group must have a unique name and cannot conflict with already existing groups.
112+ *
113+ * @param name the name of the group to be created.
114+ * @param data a {@link Consumer} to configure the {@link GroupData} for the new group.
115+ * @param worlds an array of {@link World} instances that will be part of the group.
116+ * @return the created {@link WorldGroup} instance.
117+ * @throws IllegalStateException if a group with the specified name already exists,
118+ * or if a given world is already part of another group.
119+ * @since 1.0.2
120+ */
121+ @ Contract (value = "_, _, _ -> new" , mutates = "this" )
122+ WorldGroup createGroup (String name , Consumer <GroupData > data , World ... worlds ) throws IllegalStateException ;
123+
124+ /**
125+ * Creates a new {@link WorldGroup} with the specified name, data, and a collection of worlds.
126+ * The group must have a unique name and cannot conflict with already existing groups.
127+ *
128+ * @param name the name of the group to be created.
129+ * @param data a {@link Consumer} to configure the {@link GroupData} for the new group.
130+ * @param worlds a collection of {@link World} instances that will be part of the group.
131+ * @return the created {@link WorldGroup} instance.
132+ * @throws IllegalStateException if a group with the specified name already exists,
133+ * or if a given world is already part of another group.
134+ * @since 1.0.2
135+ */
136+ @ Contract (value = "_, _, _ -> new" , mutates = "this" )
137+ WorldGroup createGroup (String name , Consumer <GroupData > data , Collection <World > worlds ) throws IllegalStateException ;
138+
109139 /**
110140 * Creates a new {@link WorldGroup} with the specified name, data, settings, and a collection of worlds.
111141 * The group must have a unique name and cannot conflict with already existing groups.
0 commit comments