Problem with DeluxeHub plugin.

Discussion in 'Bukkit Help' started by GattoEilish, Sep 4, 2023.

Thread Status:
Not open for further replies.
  1. Offline

    GattoEilish

    Everytime i edit the serverselector.yml on the menus folder i get this error in console and the plugin shut down. Please help :) .


    Code:
    Error occurred while enabling DeluxeHub v3.5.4 (Is it up to date?)
    java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
        at java.util.regex.Matcher.getTextLength(Matcher.java:1769) ~[?:?]
        at java.util.regex.Matcher.reset(Matcher.java:415) ~[?:?]
        at java.util.regex.Matcher.<init>(Matcher.java:252) ~[?:?]
        at java.util.regex.Pattern.matcher(Pattern.java:1134) ~[?:?]
        at fun.lewisdev.deluxehub.utility.color.patterns.GradientPattern.process(GradientPattern.java:23) ~[DeluxeHub-3.5.4 (1).jar:?]
        at fun.lewisdev.deluxehub.utility.color.IridiumColorAPI.process(IridiumColorAPI.java:67) ~[DeluxeHub-3.5.4 (1).jar:?]
        at fun.lewisdev.deluxehub.utility.TextUtil.color(TextUtil.java:16) ~[DeluxeHub-3.5.4 (1).jar:?]
        at fun.lewisdev.deluxehub.inventory.inventories.CustomGUI.onEnable(CustomGUI.java:25) ~[DeluxeHub-3.5.4 (1).jar:?]
        at java.util.HashMap$Values.forEach(HashMap.java:1065) ~[?:?]
        at fun.lewisdev.deluxehub.inventory.InventoryManager.onEnable(InventoryManager.java:29) ~[DeluxeHub-3.5.4 (1).jar:?]
        at fun.lewisdev.deluxehub.DeluxeHubPlugin.onEnable(DeluxeHubPlugin.java:91) ~[DeluxeHub-3.5.4 (1).jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.20.1.jar:git-Paper-169]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.20.1.jar:git-Paper-169]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:640) ~[paper-1.20.1.jar:git-Paper-169]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:551) ~[paper-1.20.1.jar:git-Paper-169]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:635) ~[paper-1.20.1.jar:git-Paper-169]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:434) ~[paper-1.20.1.jar:git-Paper-169]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.20.1.jar:git-Paper-169]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.20.1.jar:git-Paper-169]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-169]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
    serverselector.yml


    Code:
    # Server Selector GUI
    # The ID of this inventory is 'serverselector' which you can open using the [MENU] action (e.g. "[MENU] serverselector").
    # You can create more custom GUIs, just copy this entire file and paste a new one in the menus directory. The name of the file is the menu ID.
    #
    # PLAYER HEADS
    #   You can have player heads, using player names, base64 or HeadDatabase IDs.
    #   Examples
    #     Username (must have logged into the server once)
    #       material: PLAYER_HEAD
    #       username: <name>
    #
    #     Base64
    #       material: PLAYER_HEAD
    #       base64: <base64 id>
    #
    #     HeadDatabase
    #       material: PLAYER_HEAD
    #       hdb: <hdb id>
    #
    # ITEM FLAGS
    #   You can add flags to the item (https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html)
    #   Example:
    #     item_flags:
    #       - HIDE_ATTRIBUTES
    #       - HIDE_DESTROYS
    #       - HIDE_ENCHANTS
    #       - HIDE_PLACED_ON
    #       - HIDE_POTION_EFFECTS
    #       - HIDE_UNBREAKABLE
    #
    # ITEM ACTIONS
    #   All item actions can be found here https://wiki.lewisdev.fun/free-resources/deluxehub/action-types
    
    # Slots of the GUI
    slots: 27
    
    # Title of the GUI
    title: "&4&lSeleziona Modalità di gioco"
    
    # Automatically update open inventories.
    # This can be used to update placeholders in the GUI.
    refresh:
      enabled: false
      rate: 40
    
    # The items inside the GUI can be listed here
    items:
      filler:
        material: RED_STAINED_GLASS_PANE
        slot: -1 # Setting the slot to -1 will fill every empty slot, you can also do "slots: [0, 1, 2]"
      factions:
        material: GRASS_BLOCK
        slot: 11
        amount: 1
        glow: false
        display_name: '&a&lVanilla Jacckonica
        lore:
          - '&a[&4&lJacckonia&0]'
          - 'Clicca per entrare nella modalità.'
        actions:
          - '[CLOSE]'
          - '[MESSAGE] &7Caricamento in corso.. (&a&lVanilla Jacckonica&r)'
          - '[CONSOLE] mvtp %player% WorldVanilla'
          # For multi-world servers using Multiverse-Core, use the action:
          # - '[CONSOLE] mvtp %player% world'
      survival:
        material: GRASS_BLOCK
        slot: 15
        amount: 1
        glow: false
        display_name: '&aSurvival'
        lore:
          - '&7Join now!'
          - '&aMulti lore support too!'
        actions:
          - '[CLOSE]'
          - '[MESSAGE] &7Sending you to: &eSurvival'
          - '[BUNGEE] survival'
     
  2. Online

    timtower Administrator Administrator Moderator

    @GattoEilish Give this error to the developer of the plugin
     
Thread Status:
Not open for further replies.

Share This Page