mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 10:35:18 +01:00
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:
parent
d4de86f6a5
commit
21bf900448
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user