diff --git a/api/src/main/java/xyz/srnyx/annoyingapi/options/PluginOptions.java b/api/src/main/java/xyz/srnyx/annoyingapi/options/PluginOptions.java index 5f76112..dcbc36d 100644 --- a/api/src/main/java/xyz/srnyx/annoyingapi/options/PluginOptions.java +++ b/api/src/main/java/xyz/srnyx/annoyingapi/options/PluginOptions.java @@ -88,4 +88,28 @@ public PluginOptions updatePlatforms(@NotNull PluginPlatform.Multi updatePlatfor this.updatePlatforms = updatePlatforms; return this; } + + /** + * Sets {@link #updatePlatforms} + * + * @param updatePlatforms the new {@link #updatePlatforms} + * + * @return the {@link PluginOptions} instance for chaining + */ + @NotNull + public PluginOptions updatePlatforms(@NotNull Collection updatePlatforms) { + return updatePlatforms(new PluginPlatform.Multi(updatePlatforms)); + } + + /** + * Sets {@link #updatePlatforms} + * + * @param updatePlatforms the new {@link #updatePlatforms} + * + * @return the {@link PluginOptions} instance for chaining + */ + @NotNull + public PluginOptions updatePlatforms(@NotNull PluginPlatform... updatePlatforms) { + return updatePlatforms(new PluginPlatform.Multi(updatePlatforms)); + } }