mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 10:35:18 +01:00
Fix a couple compile errors after a lot of reverts and merges
This commit is contained in:
parent
b6a4198a60
commit
3722ebb46a
@ -8,7 +8,7 @@ import com.songoda.core.utils.SongodaAuth;
|
||||
import de.tr7zw.changeme.nbtapi.utils.MinecraftVersion;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
@ -44,7 +44,7 @@ public abstract class SongodaPlugin extends JavaPlugin {
|
||||
/**
|
||||
* Called after reloadConfig() is called
|
||||
*/
|
||||
public abstract @NotNull List<SongodaYamlConfig> getConfigs();
|
||||
public abstract void onConfigReload();
|
||||
|
||||
/**
|
||||
* Any other plugin configuration files used by the plugin.
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.songoda.core.configuration;
|
||||
|
||||
import com.songoda.core.utils.TextUtils;
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.InvalidConfigurationException;
|
||||
import org.bukkit.configuration.file.YamlConstructor;
|
||||
|
@ -48,9 +48,19 @@ public class CustomizableGui extends Gui {
|
||||
Config config = new Config(plugin, "gui/" + guiKey + ".yml");
|
||||
config.load();
|
||||
|
||||
config.setNodeComment("overrides", "For information on how to apply overrides please visit\n" +
|
||||
"https://wiki.craftaro.com/index.php/Gui");
|
||||
config.setNodeComment("overrides.example", "This is just an example and does not override to any items in this GUI.");
|
||||
if (!config.isConfigurationSection("overrides")) {
|
||||
config.setDefault("overrides.example.item", CompatibleMaterial.STONE.name(),
|
||||
"This is the icon material you would like to replace",
|
||||
"the current material with.")
|
||||
.setDefault("overrides.example.position", 5,
|
||||
"This is the current position of the icon you would like to move.",
|
||||
"The number represents the cell the icon currently resides in.")
|
||||
.setDefaultComment("overrides.example",
|
||||
"This is just an example and does not override to any items",
|
||||
"in this GUI.")
|
||||
.setDefaultComment("overrides",
|
||||
"For information on how to apply overrides please visit",
|
||||
"https://wiki.craftaro.com/index.php/Gui");
|
||||
|
||||
config.saveChanges();
|
||||
}
|
||||
|
@ -19,6 +19,10 @@ import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* @deprecated This class will be removed in the future and replaced with a more maintainable system.
|
||||
*/
|
||||
@Deprecated
|
||||
public class BlockUtils {
|
||||
protected static final Set<Material> DOORS;
|
||||
protected static final Set<Material> PRESSURE_PLATES;
|
||||
|
Loading…
Reference in New Issue
Block a user