v3.14.5.1

This commit is contained in:
rockyhawk64 2021-01-05 22:22:37 +11:00
parent e2b09581a4
commit fed849f02f
3 changed files with 4 additions and 5 deletions
resource
src/me/rockyhawk/commandpanels

View File

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

View File

@ -1,10 +1,8 @@
package me.rockyhawk.commandpanels.interactives; package me.rockyhawk.commandpanels.interactives;
import me.rockyhawk.commandpanels.CommandPanels; import me.rockyhawk.commandpanels.CommandPanels;
import me.rockyhawk.commandpanels.ioclasses.NBTEditor;
import org.bukkit.*; import org.bukkit.*;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@ -50,8 +48,6 @@ public class Commandpanelrefresher implements Listener {
} }
final ConfigurationSection cfFinal = cf; final ConfigurationSection cfFinal = cf;
ItemStack[] panelItemList = plugin.createGUI.openGui(null, p, cf,2, -1).getContents();
ItemStack[] playerItemList = plugin.legacy.getStorageContents(p.getInventory());
new BukkitRunnable(){ new BukkitRunnable(){
int c = 0; int c = 0;
int animatecount = 0; int animatecount = 0;

View File

@ -48,6 +48,9 @@ public class HotbarItemLoader {
String panelName = plugin.panelNames.get(temp[1])[0]; String panelName = plugin.panelNames.get(temp[1])[0];
ConfigurationSection tempFile = YamlConfiguration.loadConfiguration(new File(plugin.panelsf + File.separator + plugin.panelFiles.get(Integer.parseInt(plugin.panelNames.get(temp[1])[1])))).getConfigurationSection("panels." + panelName); ConfigurationSection tempFile = YamlConfiguration.loadConfiguration(new File(plugin.panelsf + File.separator + plugin.panelFiles.get(Integer.parseInt(plugin.panelNames.get(temp[1])[1])))).getConfigurationSection("panels." + panelName);
//only open panel automatically if there are no commands and player world is not disabled //only open panel automatically if there are no commands and player world is not disabled
if(!p.hasPermission(tempFile.getString("perm"))){
return false;
}
if(tempFile.contains("disabled-worlds")){ if(tempFile.contains("disabled-worlds")){
if(tempFile.getStringList("disabled-worlds").contains(p.getWorld().getName())){ if(tempFile.getStringList("disabled-worlds").contains(p.getWorld().getName())){
return false; return false;