Adds some deprecation notices to configuration.editor classes

This commit is contained in:
Christian Koop 2022-08-21 20:44:19 +02:00
parent 20b44327e0
commit eea951ecc6
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
4 changed files with 12 additions and 0 deletions

View File

@ -62,11 +62,13 @@ public class SongodaCore {
/** /**
* This is specific to the website api * This is specific to the website api
*/ */
@Deprecated
private final static int updaterVersion = 1; private final static int updaterVersion = 1;
private final static Set<PluginInfo> registeredPlugins = new HashSet<>(); private final static Set<PluginInfo> registeredPlugins = new HashSet<>();
private static SongodaCore INSTANCE = null; private static SongodaCore INSTANCE = null;
private JavaPlugin piggybackedPlugin; private JavaPlugin piggybackedPlugin;
private CommandManager commandManager; private CommandManager commandManager;
private EventListener loginListener; private EventListener loginListener;
@ -233,6 +235,7 @@ public class SongodaCore {
tasks.add(Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, () -> update(info), 60L)); tasks.add(Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, () -> update(info), 60L));
} }
@Deprecated
private void update(PluginInfo plugin) { private void update(PluginInfo plugin) {
try { try {
URL url = new URL("https://update.songoda.com/index.php?plugin=" + plugin.getSongodaId() URL url = new URL("https://update.songoda.com/index.php?plugin=" + plugin.getSongodaId()

View File

@ -26,7 +26,10 @@ import java.util.logging.Level;
/** /**
* Edit a configuration file for a specific plugin * Edit a configuration file for a specific plugin
*
* @deprecated Needs a recode in another package
*/ */
@Deprecated
public class ConfigEditorGui extends SimplePagedGui { public class ConfigEditorGui extends SimplePagedGui {
final JavaPlugin plugin; final JavaPlugin plugin;
final String file; final String file;

View File

@ -12,7 +12,10 @@ import java.util.List;
/** /**
* Edit a string list * Edit a string list
*
* @deprecated Needs a recode in another package
*/ */
@Deprecated
public class ConfigEditorListEditorGui extends SimplePagedGui { public class ConfigEditorListEditorGui extends SimplePagedGui {
final ConfigEditorGui current; final ConfigEditorGui current;

View File

@ -18,7 +18,10 @@ import java.util.Map;
/** /**
* Edit all configuration files for a specific plugin * Edit all configuration files for a specific plugin
*
* @deprecated Needs a recode in another package
*/ */
@Deprecated
public class PluginConfigGui extends SimplePagedGui { public class PluginConfigGui extends SimplePagedGui {
final JavaPlugin plugin; final JavaPlugin plugin;
LinkedHashMap<String, MemoryConfiguration> configs = new LinkedHashMap<>(); LinkedHashMap<String, MemoryConfiguration> configs = new LinkedHashMap<>();