Make SongodaPlugin#getDependencies non-abstract and return empty Set

Most plugins don't have additional dependencies so this should make migrating existing plugins a bit easier.
This commit is contained in:
Christian Koop 2024-01-13 18:40:22 +01:00
parent d4de86f6a5
commit 21bf900448
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -18,6 +18,7 @@ import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.sql.Connection;
@ -46,7 +47,9 @@ public abstract class SongodaPlugin extends JavaPlugin {
System.setProperty("org.jooq.no-logo", "true");
}
protected abstract Set<Dependency> getDependencies();
protected @NotNull Set<Dependency> getDependencies() {
return Collections.emptySet();
}
public abstract void onPluginLoad();