Mark overwritten and empty config methods in SongodaPlugin as deprecated

The methods should not be used
This commit is contained in:
Christian Koop 2022-06-26 13:33:41 +02:00
parent 7ef00bb8f9
commit 73685b62dd
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 4 additions and 2 deletions

View File

@ -217,15 +217,16 @@ public abstract class SongodaPlugin extends JavaPlugin {
/**
* Use {@link SongodaYamlConfig} instead.
*/
@NotNull
@Deprecated
@Override
public FileConfiguration getConfig() {
public @NotNull FileConfiguration getConfig() {
return super.getConfig();
}
/**
* Use {@link SongodaYamlConfig} instead.
*/
@Deprecated
@Override
public void reloadConfig() {
}
@ -233,6 +234,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
/**
* Use {@link SongodaYamlConfig} instead.
*/
@Deprecated
@Override
public void saveConfig() {
}