CustomGUI config won't work.

Status
This thread has been locked.

Oreo

waiting for something interesting to happen
Premium
Feedback score
11
Posts
745
Reactions
328
Resources
0
Code:
#     CloseActions:
#     - <action>
#     Items:
#       <Item Id>:
#         ItemSlot: <display slot>
#         Permission: <item permission>
#         NoPermissionSound: <sound value>
#         <Item Type>:
#           Priority: <1-5>
#           ClickDelay: <time in seconds>
#           BalanceType: <economy type>
#           AnimationDelay: <time in ticks>
#           Item: <material;amount;data>
#           Name: <item name>
#           Lore:
#           - <lore line>
#           Enchants:
#           - <enchant;level>
#           HideEnchants: <true/false>
#           HideAttributes: <true/false>
#           HidePotionEffects: <true/false>
#           ShowDelay: <true/false>
#           UpdatePlaceholders: <true/false>
#           ClickActions:
#           - <click action>
#           ClickCost: <value>
#           RequiredItem: <material;amount;data>
#           RequiredItemName: <item name>
#           RequiredItemLore:
#           - <lore line>
#           TakeRequiredItem: <true/false>
#           CloseOnClick: <true/false>
#           
# GUI Format Index:
#
# <GUI Identifier> | The unqiue identifier for each GUI, they must all be different
# Size: <gui size> | The amount of slots you would like the GUI to have (9, 18, 27, 36, 45, 54)
# Name: <chest name> | The chest name you would like to display for the GUI. Supports (most) placeholders
# CloseAfter: <time in seconds> | The amount of time the player can view the GUI before it will close
# OpenActions: - <action> | The actions to perform upon a player opening the GUI
# CloseActions: - <action> | The actions to perform upon a player closing the GUI
# Items: | The section that stores all of your item identifiers
# <Item Id>: | The unqiue identifier for each item in the GUI, they must all be different
# ItemSlot: <display slot> | The slot you would like the item to display in (0-53)
# Permission: <item permission> | The permission required to click the item in the GUI
# NoPermissionSound: <sound value> | The sound to be played if the player doesn't have permission
# <Item Type> | The item type specific item to display in the GUI. More info can be found on the plugin page.
# Priority: <1-5> | The priority of the item type that will be determined first. 1 = highest, 5 = lowest
# ClickDelay: <time in seconds> | The time in seconds before the player can click this item again
# BalanceType: <economy type> | The economy type used for the clickcost and balance item
# AnimationDelay: <time in ticks> | The time in ticks before updating between the animated and regular item
# Item: <material;amount;data> | The item material and amount to be displayed in the GUI
# Name: <item name> | The name that the item in the GUI will have displayed
# Lore: - <lore line> | The lore that the item will have displayed in the GUI
# Enchants: - <enchant;level> | The enchantments that the item in the GUI will have
# HideEnchants: <true/false> | This toggle will determine whether or not to hide enchants to give a 'glow' effect
# HideAttributes: <true/false> | This toggle will determining whether or not to hide item attributes
# HidePotionEffects: <true/false> | This toggle will determining whether or not to hide item potion effects
# ShowDelay: <true/false> | If true it will display an extra lore line with the remaining click delay time
# UpdatePlaceholders: <true/false> | If true it will update the lore placeholders with the animation delay timer
# ClickActions: - <click action> | The actions to perform upon a player clicking the item
# ClickCost: - <value> | The required amount of currency to use the item.
# RequiredItem: <material;amount;data> | The item the player must have in their inventory to click item
# RequiredItemName: <item name> | The name of the item the player must have in their inventory to click item
# RequiredItemLore: - <lore line> | The lore of the item the player must have in their inventory to click item
# TakeRequiredItem: <true/false> | Whether or not you want to take the required item on item click
# CloseOnClick: <true/false> | Whether or not you want the GUI to close on item click
#
# ======================================================
#
# Valid Actions:
#
# ** Please note that all actions are case-sensitive **
#
# [Right-Click] [<action>] - Will only execute the action if the item is right clicked
# [Left-Click] [<action>] - Will only execute the action if the item is left clicked
# [Chance=<percent>] [<action>] - Chance out of 100% that this action will be performed
# [Delay=<time>] [<action>] - Delays the action to be performed after the delay period in seconds
# [PlayerCommand] <command> - Executes the command as a player
# [ConsoleCommand] <command> - Executes the command as the console
# [OperatorCommand] <command> - Executes the command as the console
# [Broadcast] <message> - Broadcasts the following message to the server
# [Message] <message> - Sends the following message to the player
# [JSONBroadcast] <message> - Sends the following json message to the server
# [JSONMessage] <message> - Sends the following json to the player
# [Sound] <sound value> - Plays the sound for the player
# [OpenGUI] <gui identifier> - Opens the specified GUI for the player
# [CloseGUI] <value not required> - Closes the GUI the player has open
# [GiveClickItem] <clickitem identifier> - Gives the player the specified click item
# [TakeClickItem] <clickitem identifier> - Removes the click item from the players inventory
# [SetClickDelay] <gui identifier>;<itemtype>;<itemslot>;<newdelay> - Sets the items click delay
# [VaultGive] <amount> - Adds the amount to the players Vault economy balance
# [VaultTake] <amount> - Take the amount from the players Vault economy balance
# [Teleport] <world name;x;y;z> - Teleports the player to the specified coordinates
# [Teleport] <world name;x;y;z;yaw;pitch> - Teleports the player to the specified coordinates
# [Title] <title> - Displays the title for the player
# [Title] <title>;<subtitle> - Displays the title & subtitle for the player
# [ActionBar] <message> - Displays the message in the actionbar for the player
# [Bungee] <server> - Sends the player to the specified bungee server
#
# ======================================================

GUIFormat: config
PlayerClickDelay: 1
CloseWithinDelay: false
OverrideClickItems: false
RegisteredGUI:
  Selector:
    Enabled: true
    OpenDelay: 3
    Worlds: []
    Commands: []
    SignLocations: []
    ClickItems:
      ExampleItem:
        ClickType: both
        Name: '&aServer Selector'
        Item: COMPASS;1;0
        Lore:
        - '&7Hello, %player%!'
        - '&7Click to open the Server Selector!'
        Enchants: []
        ClickActions: []
        BlockMovement: false
        BlockDrop: false
        GiveOnJoin: true
        GiveOnRespawn: true
        GiveItemSlot: 100
        TakeOnClick: false
GUIList:
  SampleGui:
    Size: 54
    Name: '&aName Here'
    CloseAfter: 30
    Items:
      ExampleItem1:
        ItemSlot: 11
        Permission: test.test
        NoPermissionSound: ANVIL_LAND
        DefaultItem:
          Priority: 5
          ClickDelay: 10
          BalanceType: vault
          AnimationDelay: 20
          Item: STONE_BLOCK;1;0
          Name: '&aSample Server'
          Lore:
          - '&8Gamemode'
          - ' '
          - lore, add
          - lines to
          - make a new
          - line
          - ' '
          - '&aâ–º &aJoin'
          - '&7%pinger_players_SERV:PORT current players!'
          Enchants:
          - DURABILITY;1
          AnimatedItem: STONE_BLOCK;1;0
          AnimatedName: '&aSample Server'
          AnimatedLore:
          - '&8Gamemode'
          - ' '
          - lore, add
          - lines to
          - make a new
          - line
          - ' '
          - '  &aJoin'
          - '&7%pinger_players_SERV:PORT current players!'
          HideEnchants: true
          ShowDelay: true
          ClickActions:
          - '[Bungee] SERVER_HERE'
          - '[CloseGUI]'
          ClickCost: 0
          CloseOnClick: false
Console errors too
Code:
[12:46:17] [Server thread/INFO]: CloudX_ issued server command: /cg menu
[12:46:19] [Server thread/ERROR]: Could not pass event InventoryClickEvent to CustomGUI v2.2.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1839) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.NullPointerException
at org.bukkit.inventory.ItemStack.(ItemStack.java:94) ~[spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
at me.jacobculley.customgui.Item.ReturnItem(Item.java:421) ~[?:?]
at me.jacobculley.customgui.GUI.openContentsGUI(GUI.java:416) ~[?:?]
at me.jacobculley.customgui.Events.InventoryClick.onInventoryClick(InventoryClick.java:1572) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.11.2.jar:git-Spigot-65a0347-1a71021]
... 15 more
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

TBK

59,226.94 CRO
Deactivated
Feedback score
49
Posts
756
Reactions
753
Resources
0
In your items lores you forgot to add '' to the lines

for example you have this:
- lore, add

When i think it should be this:

- 'lore, add'
 

Oreo

waiting for something interesting to happen
Premium
Feedback score
11
Posts
745
Reactions
328
Resources
0
In your items lores you forgot to add '' to the lines

for example you have this:
- lore, add

When i think it should be this:

- 'lore, add'
Code:
GUIFormat: config
PlayerClickDelay: 1
CloseWithinDelay: false
OverrideClickItems: false
RegisteredGUI:
  Selector:
    Enabled: true
    OpenDelay: 3
    Worlds: []
    Commands: []
    SignLocations: []
    ClickItems:
      Compass:
        ClickType: both
        Name: '&aServer Selector'
        Item: COMPASS;1;0
        Lore:
        - '&7Hello, %player%!'
        - '&7Click to open the Server Selector!'
        Enchants: []
        ClickActions: []
        BlockMovement: false
        BlockDrop: false
        GiveOnJoin: true
        GiveOnRespawn: true
        GiveItemSlot: 100
        TakeOnClick: false
  SampleGui:
    Enabled: true
GUIList:
  ServerSelector:
    Size: 54
    Name: '&aName Here'
    Items:
      ExampleItem1:
        ItemSlot: 11
        Permission: test.test
        NoPermissionSound: ANVIL_LAND
        DefaultItem:
          Priority: 5
          ClickDelay: 10
          BalanceType: vault
          AnimationDelay: 20
          Item: STONE_BLOCK;1;0
          Name: '&aSample Server'
          Lore:
          - '&8Gamemode'
          - ' '
          - 'lore, add'
          - 'lines to'
          - 'make a new'
          - 'line'
          - ' '
          - '&aâ–º &aJoin'
          - '&7%pinger_players_SERV:PORT current players!'
          Enchants:
          - DURABILITY;1
          AnimatedItem: STONE_BLOCK;1;0
          AnimatedName: '&aSample Server'
          AnimatedLore:
          - '&8Gamemode'
          - ' '
          - 'lore, add'
          - 'lines to'
          - 'make a new'
          - 'line'
          - ' '
          - '  &aJoin'
          - '&7%pinger_players_SERV:PORT current players!'
          HideEnchants: true
          ShowDelay: true
          ClickActions:
          - '[Bungee] SERVER_HERE'
          CloseOnClick: false
I did that but it still does not work
 
Status
This thread has been locked.
Top