forked from Upstream/CommandPanels
v3.14.5.1
This commit is contained in:
parent
e2b09581a4
commit
fed849f02f
@ -1,4 +1,4 @@
|
||||
version: 3.14.5.0
|
||||
version: 3.14.5.1
|
||||
main: me.rockyhawk.commandpanels.CommandPanels
|
||||
name: CommandPanels
|
||||
author: RockyHawk
|
||||
|
@ -1,10 +1,8 @@
|
||||
package me.rockyhawk.commandpanels.interactives;
|
||||
|
||||
import me.rockyhawk.commandpanels.CommandPanels;
|
||||
import me.rockyhawk.commandpanels.ioclasses.NBTEditor;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.entity.HumanEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
@ -50,8 +48,6 @@ public class Commandpanelrefresher implements Listener {
|
||||
}
|
||||
|
||||
final ConfigurationSection cfFinal = cf;
|
||||
ItemStack[] panelItemList = plugin.createGUI.openGui(null, p, cf,2, -1).getContents();
|
||||
ItemStack[] playerItemList = plugin.legacy.getStorageContents(p.getInventory());
|
||||
new BukkitRunnable(){
|
||||
int c = 0;
|
||||
int animatecount = 0;
|
||||
|
@ -48,6 +48,9 @@ public class HotbarItemLoader {
|
||||
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);
|
||||
//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.getStringList("disabled-worlds").contains(p.getWorld().getName())){
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user