ServerShop GUI Errors

Discussion in 'Spigot Plugin Help' started by Kiwonza, Jun 4, 2015.

  1. I have been setting up a shop for ServerShop GUI, and for some unexpected reason, it broke. I believe I followed the right format, but whenever I edit the 7th position and up, it crashes unexpectedly. I have two shops set up, Ores and Blocks, but it has only ever crashed when I modified Blocks at the 7th position.

    config.yml
    Code (Text):
    main:
      slots: 9
      enableCommand: true
      enableItem: false
      shopOpenWithItem: Compass
      blockbuyablecommands: false
      EnableLogs: false
      EnableClickSound: true
      EnableMetrics: true
      Item_Currency: EMERALD
      Debug: false
      firststart: false
      EnableMySQL: false
      EnableToken: true
      EnableSlotPermissions: false
    mysql:
      Hostname: localhost
      Port: '3306'
      Password: password
      User: root
      Database: Minecraft
    Vote:
      Enable: true
      TokenAmount: 1
    list:
      '0':
        size: 18
        name: Ores
        icon: Diamond_Ore
        description:
        - '&7Any and every overworld ore.'
        returnbutton: true
      '2':
        size: 27
        name: Blocks
        icon: Wood
        description:
        - '&8All the blocks you'
        - '&8could possibly want'
        returnbutton: true
     
    Blocks.yml
    Code (Text):
    stock:
      '0':
        Type: Item
        Reward: Grass
        Displayname: Grass
        Pricetype: Money
        Price: 50
        Sell: -1
        Amount: 16
      '1':
        Type: Item
        Reward: 110
        Displayname: Mycelium
        Pricetype: Money
        Price: 550
        Sell: -1
        Amount: 16
      '2':
        Type: Item
        Reward: Dirt:2
        Displayname: Podzol
        Pricetype: Money
        Price: 250
        Sell: -1
        Amount: 16
      '3':
        Type: Item
        Reward: Dirt
        Displayname: Dirt
        Pricetype: Money
        Price: 25
        Sell: -1
        Amount: 16
      '4':
        Type: Item
        Reward: Stone
        Displayname: Stone
        Pricetype: Money
        Price: 50
        Sell: -1
        Amount: 16
      '5':
        Type: Item
        Reward: Stone:1
        Displayname: Granite
        Pricetype: Money
        Price: 30
        Sell: -1
        Amount: 16
      '6':
        Type: Item
        Reward: Stone:3
        Displayname: Diorite
        Pricetype: Money
        Price: 30
        Sell: -1
        Amount: 16
      '7':
        Type: Item
        Reward: Stone:5
        Displayname: Andesite
        Pricetype: Money
        Price: 30
        Sell: -1
        Amount: 16
      '9':
        Type: Item
        Item: log:0
        Displayname: Oak_Wood
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '10':
        Type: Item
        Item: log:1
        Displayname: Spruce_Wood
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '11':
        Type: Item
        Item: log:2
        Displayname: Birch_Wood
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '12':
        Type: Item
        Item: log:3
        Displayname: Jungle_Wood
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '13':
        Type: Item
        Item: log2:0
        Displayname: Acacia_Wood
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '14':
        Type: Item
        Item: log2:1
        Displayname: Dark_Oak_Wood
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '15':
        Type: Item
        Item: Glass
        Displayname: Glass
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '16':
        Type: Item
        Item: Sand
        Displayname: Sand
        Pricetype: Money
        Price: 50
        Sell: -1
        Amount: 16
      '17':
        Type: Item
        Item: Sand:1
        Displayname: Red_Sand
        Pricetype: Money
        Price: 50
        Sell: -1
        Amount: 16
      '18':
        Type: Item
        Item: 155
        Displayname: Quartz_Block
        Pricetype: Money
        Price: 225
        Sell: -1
        Amount: 16
      '19':
        Type: Item
        Item: Netherrack
        Displayname: Netherrack
        Pricetype: Money
        Price: 15
        Sell: -1
        Amount: 16
      '20':
        Type: Item
        Item: 88
        Displayname: Soul_Sand
        Pricetype: Money
        Price: 75
        Sell: -1
        Amount: 16
      '21':
        Type: Item
        Item: Glowstone
        Displayname: Glowstone
        Pricetype: Money
        Price: 150
        Sell: -1
        Amount: 16
    Console Log on Crash:
    [16:38:00] [Server thread/INFO]: [ServerShop-GUI] Enabling ServerShop-GUI v1.6
    [16:38:00] [Server thread/INFO]: [ServerShop-GUI] Plugin is using Essentials Economy as economy system!
    [16:38:00] [Server thread/INFO]: [ServerShop-GUI] Plugin is using PermissionsEx as permission system!
    [16:38:00] [Server thread/INFO]: [ServerShop-GUI] Citizens2 not found.. Skipping NPC support.
    [16:38:00] [Server thread/ERROR]: Error occurred while enabling ServerShop-GUI v1.6 (Is it up to date?)
    java.lang.NullPointerException
    at com.avalon.servershop.ServerShop.AddItemToShops(ServerShop.java:391) ~[?:?]
    at com.avalon.servershop.ServerShop.createInventory(ServerShop.java:265) ~[?:?]
    at com.avalon.servershop.ServerShop.onEnable(ServerShop.java:133) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:356) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:316) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:418) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:382) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:337) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:256) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:528) [spigot-1.8.6.jar:git-Spigot-044d928-e8c6403]
    at java.lang.Thread.run(Unknown Source)
     
  2. Make sure you have the latest version of Spigot and the latest version of the plugin.
     
  3. It has worked beforehand, and the plugin works fine when I remove the Blocks.yml file, except then I don't have anything to sell in the blocks shop.
     
  4. Well it is giving the "is it up to date?" error so obviously something isn't updated :/
     
  5. Well, both the plugin and the server are up to date, with no success. I updated Vault as well, and it still is not functioning.