forked from Upstream/CommandPanels
v3.15.2.3
This commit is contained in:
parent
82931e03ea
commit
9f776c4161
@ -1,6 +1,6 @@
|
|||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
# | CommandPanels Example File
|
# | CommandPanels Example File
|
||||||
# | By RockyHawk v2.2
|
# | By RockyHawk v2.3
|
||||||
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
panels:
|
panels:
|
||||||
@ -19,7 +19,6 @@ panels:
|
|||||||
name: '&6[&bExample Panel&6]'
|
name: '&6[&bExample Panel&6]'
|
||||||
lore:
|
lore:
|
||||||
- '&3Click me to open the panel!'
|
- '&3Click me to open the panel!'
|
||||||
stationary: 4
|
|
||||||
item:
|
item:
|
||||||
'0':
|
'0':
|
||||||
material: LEATHER_HELMET
|
material: LEATHER_HELMET
|
||||||
|
@ -19,7 +19,6 @@ panels:
|
|||||||
name: '&6[&bExample Panel&6]'
|
name: '&6[&bExample Panel&6]'
|
||||||
lore:
|
lore:
|
||||||
- '&3Click me to open the panel!'
|
- '&3Click me to open the panel!'
|
||||||
stationary: 4
|
|
||||||
item:
|
item:
|
||||||
'0':
|
'0':
|
||||||
material: LEATHER_HELMET
|
material: LEATHER_HELMET
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: 3.15.2.2
|
version: 3.15.2.3
|
||||||
main: me.rockyhawk.commandpanels.CommandPanels
|
main: me.rockyhawk.commandpanels.CommandPanels
|
||||||
name: CommandPanels
|
name: CommandPanels
|
||||||
author: RockyHawk
|
author: RockyHawk
|
||||||
|
@ -413,10 +413,16 @@ public class CommandPanels extends JavaPlugin{
|
|||||||
fileNamesFromDirectory(new File(directory + File.separator + fileName));
|
fileNamesFromDirectory(new File(directory + File.separator + fileName));
|
||||||
continue;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//check before adding the file to commandpanels
|
//check before adding the file to commandpanels
|
||||||
if(!checkPanels(YamlConfiguration.loadConfiguration(new File(directory + File.separator + fileName)))){
|
if(!checkPanels(YamlConfiguration.loadConfiguration(new File(directory + File.separator + fileName)))){
|
||||||
this.getServer().getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " Error in: " + fileName);
|
this.getServer().getConsoleSender().sendMessage("[CommandPanels]" + ChatColor.RED + " Error in: " + fileName);
|
||||||
|
Loading…
Reference in New Issue
Block a user