forked from Upstream/CommandPanels
v3.15.2.3
This commit is contained in:
parent
82931e03ea
commit
9f776c4161
@ -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
|
||||
|
@ -19,7 +19,6 @@ panels:
|
||||
name: '&6[&bExample Panel&6]'
|
||||
lore:
|
||||
- '&3Click me to open the panel!'
|
||||
stationary: 4
|
||||
item:
|
||||
'0':
|
||||
material: LEATHER_HELMET
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: 3.15.2.2
|
||||
version: 3.15.2.3
|
||||
main: me.rockyhawk.commandpanels.CommandPanels
|
||||
name: CommandPanels
|
||||
author: RockyHawk
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user