forked from Upstream/CommandPanels
v3.14.2.5
This commit is contained in:
parent
45909f3b28
commit
5f9a852b41
@ -1,6 +1,6 @@
|
|||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
# | CommandPanels Config File
|
# | CommandPanels Config File
|
||||||
# | By RockyHawk v4.3
|
# | By RockyHawk v4.4
|
||||||
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
||||||
# |
|
# |
|
||||||
# | auto-update and minor-updates-only is HEAVILY RECOMMENDED
|
# | auto-update and minor-updates-only is HEAVILY RECOMMENDED
|
||||||
@ -11,6 +11,7 @@ config:
|
|||||||
ingame-editor: true
|
ingame-editor: true
|
||||||
hotbar-items: true
|
hotbar-items: true
|
||||||
custom-commands: true
|
custom-commands: true
|
||||||
|
auto-register-commands: true
|
||||||
refresh-delay: 4
|
refresh-delay: 4
|
||||||
server-ping-timeout: 10
|
server-ping-timeout: 10
|
||||||
stop-sound: true
|
stop-sound: true
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: 3.14.2.4
|
version: 3.14.2.5
|
||||||
main: me.rockyhawk.commandpanels.CommandPanels
|
main: me.rockyhawk.commandpanels.CommandPanels
|
||||||
name: CommandPanels
|
name: CommandPanels
|
||||||
author: RockyHawk
|
author: RockyHawk
|
||||||
|
@ -36,8 +36,10 @@ public class Commandpanelsreload implements CommandExecutor {
|
|||||||
//reloadHotbarSlots
|
//reloadHotbarSlots
|
||||||
plugin.hotbar.reloadHotbarSlots();
|
plugin.hotbar.reloadHotbarSlots();
|
||||||
|
|
||||||
//add custom commands
|
//add custom commands to commands.yml
|
||||||
registerCommands();
|
if(plugin.config.getString("config.auto-register-commands").equalsIgnoreCase("true")) {
|
||||||
|
registerCommands();
|
||||||
|
}
|
||||||
|
|
||||||
plugin.tag = plugin.papi(plugin.config.getString("config.format.tag") + " ");
|
plugin.tag = plugin.papi(plugin.config.getString("config.format.tag") + " ");
|
||||||
sender.sendMessage(plugin.papi(plugin.tag + plugin.config.getString("config.format.reload")));
|
sender.sendMessage(plugin.papi(plugin.tag + plugin.config.getString("config.format.reload")));
|
||||||
|
@ -31,7 +31,9 @@ public class PanelBlockOnClick implements Listener {
|
|||||||
if(!plugin.blockConfig.contains("blocks")){
|
if(!plugin.blockConfig.contains("blocks")){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(Objects.requireNonNull(plugin.config.getString("config.panel-blocks")).equalsIgnoreCase("false")){
|
if(plugin.openPanels.hasPanelOpen(p.getName())) {
|
||||||
|
//some blocks run this event twice, skip if panel already open
|
||||||
|
//as blocks cannot be clicked obviously if a panel is open
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (String configLocation : Objects.requireNonNull(plugin.blockConfig.getConfigurationSection("blocks")).getKeys(false)) {
|
for (String configLocation : Objects.requireNonNull(plugin.blockConfig.getConfigurationSection("blocks")).getKeys(false)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user