BedWars Reloaded Shop not working

Discussion in 'Spigot Plugin Help' started by ChrisShanaz, Apr 3, 2020.

  1. hi guys i recently downloaded bedwars reloaded and i wanted to customise my shop, i changed the values so that instead of bronze iron and gold i used iron gold and emeralds and i made a shop, but when i start the game, it wont let me access the shop, here is the code

    data:
    #- stack:
    # type: GOLDEN_APPLE
    # amount: 1
    # meta:
    # ==: ItemMeta
    # meta-type: UNSPECIFIC
    # display-name: "Example category"
    # lore:
    # - "This is my category!"
    # - "Please buy things inside!"
    # items:
    # - price: 50
    # price-type: "bronze"
    # stack:
    # type: DIAMOND_SWORD
    # amount: 1
    # meta:
    # ==: ItemMeta
    # meta-type: UNSPECIFIC
    # enchants:
    # DAMAGE_ALL: 2
    # repair-cost: 1
    # Damage: 99
    # Value 'applycolorbyteam' is used for automatic-coloring-in-shop.
    # See WarpPowder for more info.

    - stack: "DIAMOND_CHESTPLATE;1;Armor;Protect yourself with armor! Click here."
    items:
    - price: 1 of iron
    properties: "applycolorbyteam"
    stack:
    type: LEATHER_HELMET
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 1 of iron
    properties: "applycolorbyteam"
    stack:
    type: LEATHER_CHESTPLATE
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 1 of iron
    properties: "applycolorbyteam"
    stack:
    type: LEATHER_LEGGINGS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 1 of bronze
    properties: "applycolorbyteam"
    stack:
    type: LEATHER_BOOTS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 10 of iron
    stack:
    type: CHAINMAIL_HELMET
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 10 of iron
    stack:
    type: CHAINMAIL_CHESTPLATE
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 10 of iron
    stack:
    type: CHAINMAIL_LEGGINGS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 10 of iron
    stack:
    type: CHAINMAIL_BOOTS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 3 of gold
    stack:
    type: IRON_HELMET
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 3 of gold
    stack:
    type: IRON_CHESTPLATE
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 3 of gold
    stack:
    type: IRON_LEGGINGS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 3 of iron
    stack:
    type: IRON_BOOTS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 2 of emerald
    stack:
    type: DIAMOND_HELMET
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 2 of emerald
    stack:
    type: DIAMOND_CHESTPLATE
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 2 of emerald
    stack:
    type: DIAMOND_LEGGINGS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - price: 2 of emerald
    stack:
    type: DIAMOND_BOOTS
    enchants:
    PROTECTION_ENVIRONMENTAL: 1
    - stack: "BOW;1;Weapons;Prove yourself!"
    column: right
    items:
    - price: 12 of gold
    stack:
    type: BOW
    enchants:
    ARROW_INFINITE: 1
    - ARROW for 1 of gold
    - price: 10 of iron
    stack:
    type: STONE_SWORD
    enchants:
    - price: 7 of gold
    stack:
    type: IRON_SWORD
    enchants:
    - price: 3 of emerald
    stack:
    type: DIAMOND_SWORD
    enchants:

    - stack:
    type: POTION
    meta:
    ==: ItemMeta
    meta-type: POTION
    display-name: "Drinks"
    lore:
    - "Not enough? Use these potions and you'll feel better!"
    potion-type: strength
    row: 3
    column: 6
    items:
    - stack:
    type: POTION
    meta:
    ==: ItemMeta
    meta-type: POTION
    potion-type: healing
    price: 2 of emerald
    - stack:
    type: POTION
    meta:
    ==: ItemMeta
    meta-type: POTION
    potion-type: invisibility
    price: 5 of gold
    - stack:
    type: POTION
    meta:
    ==: ItemMeta
    meta-type: POTION
    potion-type: swiftness
    price: 7 of gold
    - stack:
    type: POTION
    meta:
    ==: ItemMeta
    meta-type: POTION
    potion-type: strength
    price: 1 of gold
    - stack:
    type: POTION
    meta:
    ==: ItemMeta
    meta-type: POTION
    potion-type: regeneration
    price: 3 of gold

    - stack: "SANDSTONE;1;Blocks;Get to the others! Possible with blocks."
    linebreak: before
    items:
    - WHITE_WOOL;16 for 4 of iron
    - END_STONE;12 for 24 of iron
    - OAK_PLANKS;12 for 4 of gold
    - OBSIDIAN;4 for 4 of emerald
    - price: 4 of iron
    properties: "applycolorbyteam"
    stack: GLASS

    - stack: "DIAMOND_PICKAXE;1;Pickaxes;Destroy others blocks? Use these pickaxes."
    column: right
    items:
    - price: 10 of iron
    stack:
    type: STONE_PICKAXE
    enchants:
    LOOT_BONUS_BLOCKS: 1
    - price: 20 of iron
    stack:
    type: IRON_PICKAXE
    enchants:
    LOOT_BONUS_BLOCKS: 2
    - price: 3 of gold
    stack:
    type: DIAMOND_PICKAXE

    i dont know whats wrong with that but please help
     
  2. Is there any error in console?
     
  3. yes here it is
    [15:48:42] [Server thread/ERROR]: Could not pass event PlayerInteractEntityEvent to BedWars v0.2.5
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:529) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:514) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1817) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInUseEntity.a(SourceFile:69) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInUseEntity.a(SourceFile:13) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:910) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:903) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:887) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:820) [spigot.jar:git-Spigot-9de398a-9c887d4]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
    Caused by: java.lang.NullPointerException
    at org.screamingsandals.bedwars.lib.sgui.GuiHolder.repaint(GuiHolder.java:85) ~[?:?]
    at org.screamingsandals.bedwars.lib.sgui.GuiHolder.<init>(GuiHolder.java:40) ~[?:?]
    at org.screamingsandals.bedwars.lib.sgui.SimpleGuiFormat.openForPlayer(SimpleGuiFormat.java:1107) ~[?:?]
    at org.screamingsandals.bedwars.inventories.ShopInventory.show(ShopInventory.java:157) ~[?:?]
    at org.screamingsandals.bedwars.Main.openStore(Main.java:207) ~[?:?]
    at org.screamingsandals.bedwars.listener.VillagerListener.onVillagerInteract(VillagerListener.java:35) ~[?:?]
    at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:316) ~[spigot.jar:git-Spigot-9de398a-9c887d4]
    ... 17 more