forked from Upstream/CommandPanels
3.17.2.2
This commit is contained in:
parent
284a5c7adc
commit
a4943de958
@ -1,6 +1,6 @@
|
|||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
# | CommandPanels Example File
|
# | CommandPanels Example File
|
||||||
# | By RockyHawk v3.0
|
# | By RockyHawk v3.1
|
||||||
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
panels:
|
panels:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
# | CommandPanels Example File
|
# | CommandPanels Example File
|
||||||
# | By RockyHawk v3.0
|
# | By RockyHawk v3.1
|
||||||
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
panels:
|
panels:
|
||||||
@ -20,102 +20,102 @@ panels:
|
|||||||
name: ''
|
name: ''
|
||||||
animate0:
|
animate0:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'1':
|
'1':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate1:
|
animate1:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'2':
|
'2':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate2:
|
animate2:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'3':
|
'3':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate3:
|
animate3:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'5':
|
'5':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate9:
|
animate9:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'6':
|
'6':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate10:
|
animate10:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'7':
|
'7':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate11:
|
animate11:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'12':
|
'12':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate4:
|
animate4:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'14':
|
'14':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate8:
|
animate8:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'16':
|
'16':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate12:
|
animate12:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'21':
|
'21':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate5:
|
animate5:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'22':
|
'22':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate6:
|
animate6:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'23':
|
'23':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate7:
|
animate7:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'25':
|
'25':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate13:
|
animate13:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
'26':
|
'26':
|
||||||
material: AIR
|
material: AIR
|
||||||
stack: 1
|
stack: 1
|
||||||
name: ''
|
name: ''
|
||||||
animate14:
|
animate14:
|
||||||
material: PUFFERFISH
|
material: PUFFERFISH
|
||||||
name: '&eHayley the Pufferfish'
|
name: '&eRhys the Pufferfish'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
# | CommandPanels Example File
|
# | CommandPanels Example File
|
||||||
# | By RockyHawk v3.0
|
# | By RockyHawk v3.1
|
||||||
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
panels:
|
panels:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
# | CommandPanels Example File
|
# | CommandPanels Example File
|
||||||
# | By RockyHawk v3.0
|
# | By RockyHawk v3.1
|
||||||
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
# | https://www.spigotmc.org/resources/command-panels-custom-guis.67788/
|
||||||
# |------------------------------------------------------------------------
|
# |------------------------------------------------------------------------
|
||||||
panels:
|
panels:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: 3.17.2.1
|
version: 3.17.2.2
|
||||||
main: me.rockyhawk.commandpanels.CommandPanels
|
main: me.rockyhawk.commandpanels.CommandPanels
|
||||||
name: CommandPanels
|
name: CommandPanels
|
||||||
author: RockyHawk
|
author: RockyHawk
|
||||||
|
@ -70,7 +70,10 @@ public class InventorySaver implements Listener {
|
|||||||
public void addInventory(Player p){
|
public void addInventory(Player p){
|
||||||
if(!inventoryConfig.contains(p.getUniqueId().toString())){
|
if(!inventoryConfig.contains(p.getUniqueId().toString())){
|
||||||
inventoryConfig.set(p.getUniqueId().toString(),plugin.itemSerializer.itemStackArrayToBase64(p.getInventory().getContents()));
|
inventoryConfig.set(p.getUniqueId().toString(),plugin.itemSerializer.itemStackArrayToBase64(p.getInventory().getContents()));
|
||||||
p.getInventory().clear();
|
//will clear items except leave armour on the player while panels are open
|
||||||
|
ItemStack[] armorContents = p.getInventory().getArmorContents().clone(); //Clone armour slots
|
||||||
|
p.getInventory().clear(); //Clear inventory
|
||||||
|
p.getInventory().setArmorContents(armorContents); //Place armour back in slots
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user