3.5.1 Updates

This commit is contained in:
rockyhawk64 2020-07-23 22:06:48 +10:00
parent fe2e7086af
commit a6bdd0039d
4 changed files with 11 additions and 17 deletions

View File

@ -1,8 +1,9 @@
# CommandPanels #
# Config File #
# By RockyHawk #
# |------------------------------------------------------------------------
# | CommandPanels Config File
# | By RockyHawk v3.0
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
# |------------------------------------------------------------------------
config:
version: '3.0'
refresh-panels: true
panel-blocks: true
refresh-delay: '4'

View File

@ -1,6 +1,8 @@
# CommandPanels #
# Example File #
# By RockyHawk #
# |------------------------------------------------------------------------
# | CommandPanels Example File
# | By RockyHawk v2.0
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
# |------------------------------------------------------------------------
panels:
example:
perm: default

View File

@ -1,4 +1,4 @@
version: 3.5.0
version: 3.5.1
main: me.rockyhawk.commandPanels.commandpanels
name: CommandPanels
author: RockyHawk

View File

@ -132,15 +132,6 @@ public class commandpanels extends JavaPlugin {
}
}
try {
if (!Objects.equals(this.config.getString("config.version"), "3.0")) {
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " WARNING: Config version doesn't match the recommended version. You may run into issues.");
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " WARNING: Either remove the config and generate a new one, or restore the original version of the plugin initially being used.");
}
} catch (Exception e) {
Bukkit.getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " WARNING: Could not find config version! Your config may be missing some information!");
}
if (Objects.requireNonNull(this.config.getString("config.update-notifications")).equalsIgnoreCase("true")) {
githubNewUpdate();
}