GUIShop is not working very well.

Discussion in 'Spigot Plugin Help' started by WitherKiller132, Jan 11, 2020.

  1. Hey everyone!
    I have a problem with GUIShop plugin. I changed the config and shop YML with no problem. I set a new shop to buy permission of kits (With command type) for Kit pvp (KP) plugin. But when i try to buy a kit, it buys another kit and some other kits aren't working. Please someone help me!
     
  2. Can we have your shop file ?
     
  3. Here is my Shop.yml file:
    Code (YAML):
    Kits:
      '10'
    :
        type
    : COMMAND
        id
    : IRON_CHESTPLATE
        buy-price
    : 600.0
        shop-name
    : '&bFighter Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.fighter
        - user addperm kp.ability.fighter
      '11'
    :
        type
    : COMMAND
        id
    : BOW
        buy-price
    : 800.0
        shop-name
    : '&bArcher Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.archer
        - user addperm kp.ability.archer
      '12'
    :
        type
    : COMMAND
        id
    : DIAMOND
        buy-price
    : 500.0
        shop-name
    : '&bTank Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.tank
        - user addperm kp.ability.tank
      '13'
    :
        type
    : COMMAND
        id
    : ARROW
        buy-price
    : 550.0
        shop-name
    : '&bSoldier Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.soldier
        - user addperm kp.ability.soldier
      '14'
    :
        type
    : COMMAND
        id
    : TNT
        buy-price
    : 1000.0
        shop-name
    : '&bBomber Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.bomber
        - user addperm kp.ability.bomber
      '15'
    :
        type
    : COMMAND
        id
    : SADDLE
        buy-price
    : 750.0
        shop-name
    : '&bKangaroo Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.kangaroo
        - user addperm kp.ability.kangaroo
      '16'
    :
        type
    : COMMAND
        id
    : ENDER_PEARL
        buy-price
    : 700.0
        shop-name
    : '&bWarper Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.warper
        - user addperm kp.ability.warper
      '20'
    :
        type
    : COMMAND
        id
    : POTION
        buy-price
    : 1000.0
        shop-name
    : '&bWitch Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.witch
        - user addperm kp.ability.witch
      '21'
    :
        type
    : COMMAND
        id
    : NETHER_STAR
        buy-price
    : 900.0
        shop-name
    : '&bNinja Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.ninja
        - user addperm kp.ability.ninja
      '22'
    :
        type
    : COMMAND
        id
    : BLAZE_POWDER
        buy-price
    : 1200.0
        shop-name
    : '&bThunderbolt Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.thunderbolt
        - user addperm kp.ability.thunderbolt
      '23'
    :
        type
    : COMMAND
        id
    : SPIDER_EYE
        buy-price
    : 800.0
        shop-name
    : '&bVampire Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.vampire
        - user addperm kp.ability.vampire
      '24'
    :
        type
    : COMMAND
        id
    : DIAMOND_HELMET
        buy-price
    : 750.0
        shop-name
    : '&bRhino Kit'
        commands
    :
       - user {PLAYER_NAME}
        - user addperm kp.kit.rhino
        - user addperm kp.ability.rhino
     
  4. and i also use bPermissions
     
  5. When i click on first one (which has iron chestplate icon) it gives kp.kit.vampire and kp.ability.vampire permission instead of kp.kit.fighter and kp.ability.fighter
    and when i click one spider eye, it dont gives kp.kit.vampire and kp.abtility.vampire. it gives errors in console.
     
  6. can you show this error ? and maybe the server logs ?
     
  7. Here is my error:
    Code (YAML):
    > [15:21:11 ERROR]: Could not pass event InventoryClickEvent to GUIShop v7.3.1
    org.bukkit.event.EventException
    : null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1889) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_222]
    at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
    Caused by
    : java.lang.IndexOutOfBoundsException: Index: 23, Size: 12
    at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_222]
    at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0_222]
    at com.pablo67340.guishop.listenable.Shop.onShopClick(Shop.java:447) ~[?:?]
    at com.github.stefvanschie.inventoryframework.GuiListener.onInventoryClick(GuiListener.java:59) ~[?:?]
    at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[minecraft_server.jar:git-Spigot-2cf50f0-2b93d83]
    ... 15 more
     
  8. Do you have Vault installed? if not, download it also, I saw there's a new version of GUIShop, can you try to update ?
     
  9. yes i have Vault plugin installed and what is the newest version for 1.12.2??
     
  10. 7.3.2
     
  11. im using aternos so it still didn't updated on aternos. it still 7.3.2
     
  12. Your config has spacing errors, tons of them. I'm not able to solve all of them because I don't exactly understand YAML that much, so I can't understand what stuff like "block mapping start" is. Maybe @Tanguygab can help with this. https://yaml-online-parser.appspot.com/ will show everything.
     
    • Agree Agree x 1
    • Friendly Friendly x 1