mcMMO-Dev / mcMMO-Classic

mcMMO Classic.
https://www.spigotmc.org/resources/official-mcmmo-classic.2445/
Other
37 stars 44 forks source link

Error when deactivating #6

Open eliasbnr opened 5 years ago

eliasbnr commented 5 years ago

Hey, i get this error when the plugin is disabled:

java.lang.ExceptionInInitializerError: null
    at com.gmail.nossr50.mcMMO.onDisable(mcMMO.java:198) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:256) ~[spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:364) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:422) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at com.gmail.nossr50.config.ConfigLoader.validate(ConfigLoader.java:67) [mcMMO.jar:?]
    at com.gmail.nossr50.config.Config.<init>(Config.java:23) [mcMMO.jar:?]
    at com.gmail.nossr50.config.Config.getInstance(Config.java:28) [mcMMO.jar:?]
    at com.gmail.nossr50.locale.LocaleLoader.initialize(LocaleLoader.java:80) [mcMMO.jar:?]
    at com.gmail.nossr50.locale.LocaleLoader.getString(LocaleLoader.java:33) [mcMMO.jar:?]
    at com.gmail.nossr50.locale.LocaleLoader.getString(LocaleLoader.java:21) [mcMMO.jar:?]
    at com.gmail.nossr50.datatypes.skills.ToolType.<clinit>(ToolType.java:10) [mcMMO.jar:?]
    at com.gmail.nossr50.datatypes.skills.SkillType.<clinit>(SkillType.java:42) [mcMMO.jar:?]
    at com.gmail.nossr50.config.AdvancedConfig.getMaxChance(AdvancedConfig.java:693) [mcMMO.jar:?]
    at com.gmail.nossr50.config.AdvancedConfig.validateKeys(AdvancedConfig.java:48) [mcMMO.jar:?]
    at com.gmail.nossr50.config.ConfigLoader.validate(ConfigLoader.java:62) [mcMMO.jar:?]
    at com.gmail.nossr50.config.AdvancedConfig.<init>(AdvancedConfig.java:22) [mcMMO.jar:?]
    at com.gmail.nossr50.config.AdvancedConfig.getInstance(AdvancedConfig.java:27) [mcMMO.jar:?]
    at com.gmail.nossr50.mcMMO.loadConfigFiles(mcMMO.java:376) [mcMMO.jar:?]
    at com.gmail.nossr50.mcMMO.onEnable(mcMMO.java:134) [mcMMO.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:254) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:434) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:348) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.reload(CraftServer.java:806) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.Bukkit.reload(Bukkit.java:570) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:139) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:702) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchServerCommand(CraftServer.java:687) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.DedicatedServer.handleCommandQueue(DedicatedServer.java:459) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:418) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:830) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:728) [spigot.jar:git-Spigot-518206a-a5b9c7b]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by: java.lang.NullPointerException
    at com.gmail.nossr50.datatypes.skills.SkillType.values(SkillType.java:38) ~[?:?]
    at com.gmail.nossr50.datatypes.skills.SkillType.bySecondaryAbility(SkillType.java:197) ~[?:?]
    at com.gmail.nossr50.config.AdvancedConfig.getMaxChance(AdvancedConfig.java:693) ~[?:?]
    at com.gmail.nossr50.config.AdvancedConfig.validateKeys(AdvancedConfig.java:48) ~[?:?]
    at com.gmail.nossr50.config.ConfigLoader.validate(ConfigLoader.java:62) ~[?:?]
    at com.gmail.nossr50.config.AdvancedConfig.<init>(AdvancedConfig.java:22) ~[?:?]
    at com.gmail.nossr50.config.AdvancedConfig.getInstance(AdvancedConfig.java:27) ~[?:?]
    at com.gmail.nossr50.skills.alchemy.Alchemy.<clinit>(Alchemy.java:51) ~[?:?]
    ... 35 more

Server Version: CraftBukkit version git-Spigot-518206a-a5b9c7b (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT) Config:

#
#  mcMMO configuration
#  Last updated on 1.6.0-b11
#
#####

#
#  Settings for mcMMO in general
###
General:
    Locale: de_DE
    MOTD_Enabled: true
    # Send a message to the player when his profile was successfully loaded
    Show_Profile_Loaded: false
    # Amount of time (in minutes) to wait between saves of player information
    Save_Interval: 5
    # Allow mcMMO to report on basic anonymous usage
    Stats_Tracking: true
    # Allow mcMMO to check if a new version is available
    Update_Check: true
    Prefer_Beta: true
    Power_Level_Cap: 0
    # Should mcMMO truncate levels if you lower your max level cap for a skillname
    TruncateSkills: false
    # Should mcMMO print out debug messages?
    Verbose_Logging: false
    # Should mcMMO over-write configs to update, or make new ones ending in .new?
    Config_Update_Overwrite: true
    # Play level-up sounds
    LevelUp_Sounds: true

    # This should fix blocks being broken client side, but not server-side.
    # Enable to refresh the chunks around a player at the end of Super Breaker,
    # Giga Drill Breaker, and Berserk. Resource intensive for larger servers.
    Refresh_Chunks: true

#
#  Settings for the mcMMO scoreboards
###
Scoreboard:
    # Display player's power levels below their names?
    Power_Level_Tags: trues

    # Allow players to use "/mcscoreboard keep" to keep the scoreboard up
    Allow_Keep: true

    # Show the /mcstats scoreboard automatically after logging in
    Show_Stats_After_Login: true

    # Show scoreboard tips 5 times. Tips are only displayed once for every login session.
    # Set to 0 to never show these tips.
    Tips_Amount: 0

    # Add some more color on the board :-)
    Rainbows: true

    # Display ability names?
    Ability_Names: true

    # Settings for each type of scoreboard
    # Print: Should the command output be printed in chat?
    # Board: Should the command output be displayed in the scoreboard sidebar?
    # Display_Time: Amount of time (seconds) to display in the sidebar before clearing.
    # To display permanently, use "/mcscoreboard keep" or set to -1
    Types:
        # Settings for /mcrank
        # The sub-options (Print, Board, Display_Time) are the same for each type.
        Rank:
            Print: false
            Board: true
            Display_Time: 15
        # Settings for /mctop
        Top:
            Print: true
            Board: true
            Display_Time: 15
        # Settings for /mcstats
        Stats:
            Print: false
            Board: true
            Display_Time: 15
        # Settings for /inspect
        Inspect:
            Print: false
            Board: true
            Display_Time: 20
        # Settings for /mccooldown
        Cooldown:
            Print: true
            Board: true
            Display_Time: 41
        # Settings for /<skillname> (e.g. /mining, /unarmed)
        # No "print" option is given here; the information will always be displayed in chat.
        # It should also be noted that this display is pretty dang cool.
        Skill:
            Board: true
            Display_Time: -1

            # Should the board be shown when a player levels up, and for how long?
            # It is recommended to NOT have LevelUp_Time be -1, as this may confuse players.
            LevelUp_Board: true
            LevelUp_Time: 5

Mob_Healthbar:
    # Enabled: Whether or not the feature is enabled at all
    # Display_Type: Per player Default display for mob health bars - HEARTS, BAR, or DISABLED
    # Display_Time: Amount of time (in seconds) to display. To display permanently, set to -1
    Enabled: true
    Display_Type: HEARTS
    Display_Time: 3

Database_Purging:
    # Amount of time (in hours) to wait between database purging
    # To only run at server start, set to 0
    # To never run, set to -1
    Purge_Interval: -1
    # Any user who hasn't connected in this many months will be purged from the database
    # To never purge old users, set to -1
    Old_User_Cutoff: 6

#
#  Settings for Backups
#  Allow mcMMO to create zip backups for config files and flatfile data on shutdown.
###
Backups:
    Enabled: true

    Keep:
        Last_24_Hours: true
        Daily_Last_Week: true
        Weekly_Past_Months: true

#
#  Settings for using a mySQL database
###
MySQL:
    Enabled: true
    Database:
        User_Name: root
        User_Password: xxxxxxxxxxx
        Name: mcmmo
        TablePrefix: mcmmo_
        # This setting is the max simultaneous mysql connections allowed at a time, needs to be
        # high enough to support multiple player logins in quick succession
        MaxConnections:
            Misc: 30
            Load: 30
            Save: 30
        # This setting is the max size of the pool of cached connections that we hold available
        # at any given time
        MaxPoolSize:
            Misc: 10
            Load: 20
            Save: 20
    Server:
        Port: 3306
        Address: localhost

#
#  Settings for Hardcore mode
#  Players will not lose stats when their level is below the Level_Threshold
###
Hardcore:
    Death_Stat_Loss:
        Penalty_Percentage: 75.0
        Level_Threshold: 0
        Enabled:
            Acrobatics: false
            Alchemy: false
            Archery: false
            Axes: false
            Excavation: false
            Fishing: false
            Herbalism: false
            Mining: false
            Repair: false
            Swords: false
            Taming: false
            Unarmed: false
            Woodcutting: false
    Vampirism:
        Leech_Percentage: 5.0
        Level_Threshold: 0
        Enabled:
            Acrobatics: false
            Alchemy: false
            Archery: false
            Axes: false
            Excavation: false
            Fishing: false
            Herbalism: false
            Mining: false
            Repair: false
            Swords: false
            Taming: false
            Unarmed: false
            Woodcutting: false

#
#  Settings for SMP Mods
###
Mods:
    Tool_Mods_Enabled: false
    Armor_Mods_Enabled: false
    Block_Mods_Enabled: false
    Entity_Mods_Enabled: false

#
#  Settings for mcMMO items
###
Items:
    Chimaera_Wing:
        Enabled: true
        Cooldown: 240
        Warmup: 5
        RecentlyHurt_Cooldown: 60
        Prevent_Use_Underground: true
        # Attempt to use the bed spawn, if one is available
        Use_Bed_Spawn: true
        Use_Cost: 1
        Recipe_Cost: 5
        Item_Name: FEATHER
        Sound_Enabled: true
    Flux_Pickaxe:
        Enabled: true
        Sound_Enabled: true

#
#  Settings for Parties
###
Party:
    # Amount of time (in hours) to wait between automatically kicking old party members
    # To only run at server start, set to 0
    # To never kick old users, set to -1
    AutoKick_Interval: 12
    # Any user who hasn't connected in this many days will get kicked from their party
    Old_Party_Member_Cutoff: 7

    # Settings for party share modes
    Sharing:
        ExpShare_bonus_base: 1.1
        ExpShare_bonus_increase: 1.05
        ExpShare_bonus_cap: 1.5
        Range: 75.0

    # Party members level up their party by earning individual experience
    # Newly created parties will not immediately have access to all the party features
    # and have to level up the party a bit before they can use them.
    Leveling:
        Level_Cap: 10

        # Uses the regular XP formula but is multiplied by <amount of party members> + <Xp_Curve_Modifier>
        Xp_Curve_Modifier: 3
        Near_Members_Needed: false
        Inform_All_Party_Members_On_LevelUp: false

        Chat_UnlockLevel: 1
        Teleport_UnlockLevel: 2
        Alliance_UnlockLevel: 5
        ItemShare_UnlockLevel: 8
        XpShare_UnlockLevel: 10

#
#  Settings for Abilities
###
Abilities:
    Enabled: true
    Messages: true
    Activation:
        Only_Activate_When_Sneaking: false
    Cooldowns:
        Berserk: 240
        Blast_Mining: 60
        Giga_Drill_Breaker: 240
        Green_Terra: 240
        Serrated_Strikes: 240
        Skull_Splitter: 240
        Super_Breaker: 240
        Tree_Feller: 240
    Max_Seconds:
        Berserk: 0
        Blast_Mining: 0
        Giga_Drill_Breaker: 0
        Green_Terra: 0
        Serrated_Strikes: 0
        Skull_Splitter: 0
        Super_Breaker: 0
        Tree_Feller: 0
    Limits:
        Tree_Feller_Threshold: 500
    Tools:
        # Use more tool durability while using abilities. Set Durability_Loss to 0 to disable the extra durability damage.
        Durability_Loss: 1

#
#  Settings for Skills
#  Level cap of 0 for no limit
###
Skills:
    Acrobatics:
        Enabled_For_PVP: true
        Enabled_For_PVE: true
        Prevent_AFK_Leveling: true
        Max_Tries_At_Same_Location: 3
        Prevent_Dodge_Lightning: false
        # Prevent earning Acrobatics XP a few seconds after teleporting
        XP_After_Teleport_Cooldown: 5
        Level_Cap: 0
    Alchemy:
        # Allow Hoppers to transfer ingredients and brew Rank 1 Alchemy potions
        Enabled_for_Hoppers: true
        # Prevent Hoppers from transferring ingredients into Brewing Stands
        Prevent_Hopper_Transfer_Ingredients: false
        # Prevent Hoppers from transferring bottles into Brewing Stands
        Prevent_Hopper_Transfer_Bottles: false
        Level_Cap: 0
    Archery:
        Enabled_For_PVP: true
        Enabled_For_PVE: true
        Level_Cap: 0
    Axes:
        Enabled_For_PVP: true
        Enabled_For_PVE: true
        Level_Cap: 0
    Excavation:
        Level_Cap: 0
    Fishing:
        Level_Cap: 0
        Drops_Enabled: true
        Override_Vanilla_Treasures: true
        # Always catch fish, even when treasure is found
        Extra_Fish: false
        Lure_Modifier: 4.0
    Herbalism:
        Level_Cap: 0
        Prevent_AFK_Leveling: true
    Mining:
        Level_Cap: 0
        Detonator_Name: FLINT_AND_STEEL
    Repair:
        Level_Cap: 0
        Anvil_Messages: true
        Anvil_Placed_Sounds: true
        Anvil_Use_Sounds: true
        Anvil_Material: IRON_BLOCK
        # Ask for a confirmation when a player tries to repair an enchanted item
        Confirm_Required: true
    Salvage:
        Level_Cap: 0
        Anvil_Messages: true
        Anvil_Placed_Sounds: true
        Anvil_Use_Sounds: true
        Anvil_Material: GOLD_BLOCK
        # Ask for a confirmation when a player tries to salvage an enchanted item
        Confirm_Required: true
    Smelting:
        Level_Cap: 0
    Swords:
        Enabled_For_PVP: true
        Enabled_For_PVE: true
        Level_Cap: 0
    Taming:
        Enabled_For_PVP: true
        Enabled_For_PVE: true
        Level_Cap: 0
        Call_Of_The_Wild:
            # Item_Material: Material of the item needed to summon the pet
            # Item_Amount: Amount of items required to summon the pet
            # Summon_Amount: Amount of pets to summon when using Call Of The Wild
            # Summon_Length: Pets despawn when their summon life length expires
            # Summon_Max_Amount: Maximum amount of pets that can be summoned at the same time
            Wolf:
                Item_Material: BONE
                Item_Amount: 10
                Summon_Amount: 1
                Summon_Length: 240
                Summon_Max_Amount: 10
            Ocelot:
                Item_Material: COD
                Item_Amount: 10
                Summon_Amount: 1
                Summon_Length: 240
                Summon_Max_Amount: 10
            Horse:
                Item_Material: APPLE
                Item_Amount: 10
                Summon_Amount: 1
                Summon_Length: 240
                Summon_Max_Amount: 10

            # Range to check for nearby pets when using Call Of The Wild, 0 will disable the check
            Range: 40.0

    Unarmed:
        Enabled_For_PVP: true
        Enabled_For_PVE: true
        Level_Cap: 0
        Block_Cracker:
            SmoothBrick_To_CrackedBrick: true
        # When using Unarmed, picked up items will automatically get moved to a free slot instead of going in the slot
        # of your hand. Should item pickup be disabled when your entire inventory - except for your hand - is full?
        Item_Pickup_Disabled_Full_Inventory: true
        # Any attacks made without a tool, i.e. with one's open hand, a block, etc., will count as unarmed. 
        Items_As_Unarmed: false
    Woodcutting:
        Tree_Feller_Sounds: true
        Level_Cap: 0

#
#  Settings for Double Drops
###
Double_Drops:
    Herbalism:
        Beetroots_Ripe: true
        Brown_Mushroom: true
        Cactus: true
        Carrots_Ripe: true
        Cocoa_Ripe: true
        Wheat_Ripe: true
        Melon: true
        Nether_Wart_Ripe: true
        Potatoes_Ripe: true
        Pumpkin: true
        Red_Mushroom: true
        Red_Tulip: true
        Sugar_Cane: true
        Vine: true
        Lily_Pad: true
        Dandelion: true
    Mining:
        Coal_Ore: true
        Diamond_Ore: true
        Emerald_Ore: true
        End_Stone: true
        Glowstone: true
        Gold_Ore: true
        Iron_Ore: true
        Lapis_Ore: true
        Mossy_Cobblestone: true
        Netherrack: true
        Obsidian: true
        Nether_Quartz_Ore: true
        Redstone_Ore: true
        Sandstone: true
        Stone: true
    Woodcutting:
        Acacia_Log: true
        Birch_Log: true
        Dark_Oak_Log: true
        Oak_Log: true
        Jungle_Log: true
        Spruce_Log: true

#
#  Settings for commands
###
Commands:
    Generic:
        # If true, when using partial names in commands mcMMO will try to look for a match from
        # the offline players. Enabling this might slow the server down if there are a lot of offline players.
        Match_OfflinePlayers: false
    Database:
        # Database command cooldown in milliseconds, cannot be changed below the default value. (1750)
        # Prevents players from spamming /mctop or /mcrank
        Player_Cooldown: 1750
    mcmmo:
        Donate_Message: true
    inspect:
        Max_Distance: 30.0
    ptp:
        Cooldown: 120
        Warmup: 5
        RecentlyHurt_Cooldown: 60
        Accept_Required: true
        Request_Timeout: 300
        # If true, require players to have a mcmmo.commands.ptp.world.[WorldName] permission
        # to teleport to, from, or within any given world.
        World_Based_Permissions: false
    partychat:
        Chat_Prefix_Format: '[[GREEN]]([[WHITE]]{0}[[GREEN]])'
        Use_Display_Names: true
        Chat_Prefix_Format_Ally: '[[GREEN]](A)[[RESET]]'
    adminchat:
        Chat_Prefix_Format: '[[AQUA]][[[WHITE]]{0}[[AQUA]]]'
        Use_Display_Names: true

#
#  Settings for particles
###
Particles:
    # These settings determine if fireworks should get launched when a player activates/deactivates an ability
    Ability_Activation: true
    Ability_Deactivation: true

    # Determines if the fireworks should be a large ball or a small one
    LargeFireworks: true

    # Use particle effect when these abilities trigger
    Bleed: true
    Dodge: true
    Flux: true
    Greater_Impact: true
    Call_of_the_Wild: true

    # These settings determine if fireworks should get launched when a player levels-up,
    # this will happen by default for every 100 levels.
    LevelUp_Enabled: true
    LevelUp_Tier: 100
#
#  Settings for sounds
###
Sounds:
    # This setting controls the master volume. 1.0 is Max,  0 would be off
    MasterVolume: 1.0