Problem with ServerSelectorX

Discussion in 'Spigot Plugin Help' started by ItzM3Lurax, Feb 2, 2020.

  1. Hello
    I have a problem when i start the plugin after editing, it showing me some errors and i dont have the compass when i log into the minecraft server.
    Can someone help me please?

    errors
    Code (Text):
    [13:01:33 WARN]: java.lang.NullPointerException
    [13:01:33 WARN]:        at xyz.derkades.serverselectorx.PingServersBackground.run(PingServersBackground.java:20)
    [13:01:33 WARN]:        at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71)
    [13:01:33 WARN]:        at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    [13:01:33 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    [13:01:33 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    [13:01:33 WARN]:        at java.base/java.lang.Thread.run(Thread.java:834)
    >
     
    and

    config
    Code (Text):
    # Number of rows of slots of your server selector menu. For example '2' will mean 2*9 = 18 slots. Max value is 6.
    rows: 3

    # This will be displayed as the title of the menu.
    title: 'Menu'

    # This will be the name of the server selector item
    item-name: 'Vyber serveru'

    item-lore:
    - '&7Klikni pro vyber serveru!'


    # The name of the server selector item.
    item: COMPASS
    data: 0

    # Give the item when a player joins?
    on-join: true

    # What slot should the item be in? Specify -1 to automatically put it in the first available slot.
    inv-slot: 0

    # URL clickable message
    url-message: '&3&lClick here'

    # Command to open the menu. Specify "none" for no command. (without /)
    command: "menu"

    # https://github.com/ServerSelectorX/ServerSelectorX/wiki/Free-%7C-Items-in-the-server-selector
    menu:

      # Server item
      11:

        # Server pinging help: https://github.com/ServerSelectorX/ServerSelectorX/wiki/Free-%7C-Server-Pinging
        # With server pinging disabled, the placeholders don't work and the plugin will always use the offline section.
        ping-server: false
        ip: 144.91.82.211
        port: 25502

        # Action to run when the item is clicked
        action: 'srv:jumpleague'

        online:
          item: CHAIN_BOOTS
          name: '&cJumpLeague'
          lore:
           - 'Online: {online} players'

        offline:
          item: WOOL
          name: '&cJumpLeague'
          lore:
           - The server is in maintenance.

      # Server item
      13:
        # Server pinging help: https://github.com/ServerSelectorX/ServerSelectorX/wiki/Free-%7C-Server-Pinging
        # With server pinging disabled, the placeholders don't work and the plugin will always use the offline section.
        ping-server: false
        ip: 144.91.82.211
        port: 25503

        # Action to run when the item is clicked
        action: 'srv:speedbuilders'

        online:
          item: END_STONE
          name: '&bSpeedBuilders'
          lore:
           - 'Online: {online} players'

        offline:
          item: WOOL
          name: '&bSpeedBuilders'
          lore:
           - The server is in maintenance.

      # Server item
      15:
        # Server pinging help: https://github.com/ServerSelectorX/ServerSelectorX/wiki/Free-%7C-Server-Pinging
        # With server pinging disabled, the placeholders don't work and the plugin will always use the offline section.
        ping-server: false
        ip: 144.91.82.211
        port: 25504

        # Action to run when the item is clicked
        action: 'srv:gungame'

        online:
          item: WOODEN_AXE
          name: '&aGunGame
          lore:
           - 'Online: {online} players'

        offline:
          item: WOOL
          name: '&aGunGame'
          lore:
           - The server is in maintenance.


      # No action item
      -1: # -1 means everything else
        action: 'none'
        offline:
          item: STAINED_GLASS_PANE
          data: 0
     
     
  2. Hi, are you using the latest version of ServerSelectorX
    you can use deluxemenus is much more configurable and free
    https://www.spigotmc.org/resources/deluxemenus.11734/
    https://www.spigotmc.org/resources/placeholderapi.6245/
     
    • Agree Agree x 1