v3.15.2.3

This commit is contained in:
rockyhawk64 2021-02-06 23:26:19 +11:00
parent 82931e03ea
commit 9f776c4161
4 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# |------------------------------------------------------------------------
# | CommandPanels Example File
# | By RockyHawk v2.2
# | By RockyHawk v2.3
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
# |------------------------------------------------------------------------
panels:
@ -19,7 +19,6 @@ panels:
name: '&6[&bExample Panel&6]'
lore:
- '&3Click me to open the panel!'
stationary: 4
item:
'0':
material: LEATHER_HELMET

View File

@ -19,7 +19,6 @@ panels:
name: '&6[&bExample Panel&6]'
lore:
- '&3Click me to open the panel!'
stationary: 4
item:
'0':
material: LEATHER_HELMET

View File

@ -1,4 +1,4 @@
version: 3.15.2.2
version: 3.15.2.3
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -413,10 +413,16 @@ public class CommandPanels extends JavaPlugin{
fileNamesFromDirectory(new File(directory + File.separator + fileName));
continue;
}
int ind = fileName.lastIndexOf(".");
if(!fileName.substring(ind).equalsIgnoreCase(".yml") && !fileName.substring(ind).equalsIgnoreCase(".yaml")){
try {
int ind = fileName.lastIndexOf(".");
if (!fileName.substring(ind).equalsIgnoreCase(".yml") && !fileName.substring(ind).equalsIgnoreCase(".yaml")) {
continue;
}
}catch (Exception ex){
continue;
}
//check before adding the file to commandpanels
if(!checkPanels(YamlConfiguration.loadConfiguration(new File(directory + File.separator + fileName)))){
this.getServer().getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " Error in: " + fileName);