mung3r / ecoCreature

PvM/E Rewards
http://forums.bukkit.org/threads/29538
GNU Lesser General Public License v3.0
7 stars 12 forks source link

Unrecognized reward #22

Closed OhBlihv closed 12 years ago

OhBlihv commented 12 years ago

Getting this error on any mob kill

[WARNING] [ecoCreature] Unrecognized reward

Config:

System:
    Economy:
        #
        # Round reward amounts to the nearest integer
        # Default : false
        IntegerCurrency: false

    Hunting:
        #
        # Give rewards for mob spawner camping
        # Default: false
        AllowCamping: false
        #
        # Clear drops from mobs killed near spawners
        # Default: true
        ClearCampDrops: true
        #
        # How many blocks away from a spawner you need to be to get a reward
        # Default: 7            
        CampRadius: 7
        #
        # Do not drop anything except for rewards defined in this file
        # Default: false
        ClearDefaultDrops: false
        #
        # Replace instead of stack rewards drops/items
        # Default: true
        OverrideDrops: true
        #
        # Do not randomize the amount of drop items - always drop a fixed amount
        # Default: false
        FixedDrops: false
        #
        # Enable rewards for mobs killed with bow & arrow
        # Default: true
        BowRewards: true
        #
        # Enable rewards for killing mobs under sea level
        # Default: true
        AllowUnderSeaLVL: true
        #
        # Enable rewards for kills with tamed creatures (wolves)
        # Default: true
        WolverineMode: true
        #
        # Penalize players when they die. Use PenalizeType to select whether PenalizeAmount
        # is used as a percentage (PenalizeType: true) or a fixed amount (PenalizeType: false)
        # taken from the player.
        # Default: false
        PenalizeDeath: true
        PenalizeType: true
        PenalizeAmount: 0.05
        #
        # Remove drops from mobs killed by farming contraptions (mob death by cacti, falling,
        # drowning or suffocation)
        # Default: false
        NoFarm: true

        #
        # MobArena: allow rewards when players are in the arena
        # Default: false
        MobArenaRewards: false

    Messages:
        #
        # Enable all reward messages
        # Default: true
        Output: true
        #
        # Message players when they get no reward for a kill
        # Default: true
        NoReward: true
        #
        # Message players for camping spawners
        # Default: false
        Spawner: true
        #
        # Custom message for no camping mob spawners
        NoCampMessage: '&7You find no rewards camping monster spawners.'
        #
        # Custom message for no rewards killing with bow & arrow
        NoBowMessage: '&7You find no rewards on this creature.'
        #
        # Custom message for death penalty
        DeathPenaltyMessage: '&7You awaken to find your pockets a little lighter!&6<amt>&7 were lost. '

Gain:
    #
    # Multiply reward amount based on group (NOTE: requires a permission plugin that
    # supports groups)
    Groups:
        Default:
            Amount: 1.0
        Donors:
            Amount: 2.0
    #
    # Multiply reward amount based on time period of day/night
    Time:
        Sunrise:
            Amount: 0.75
        Day:
            Amount: 0.5
        Sunset:
            Amount: 0.75
        Dusk:
            Amount: 1.125
        Night:
            Amount: 1.25
        Dawn:
            Amount: 1.125
    #
    # Multiply reward amount based on environment type
    Environment:
        Normal:
            Amount: 1.0
        Nether:
            Amount: 1.25
        The_End:
            Amount: 1.5

RewardTable:
    #
    # Format for Drops:
    #
    #   Drops: ITEM_ID.DATA_ID,ENCHANTMENT.LEVEL:[MIN-]MAX:CHANCE;ITEM_ID.DATA_ID:[MIN-]MAX:CHANCE;...
    #
    # Drop example 1: drop 0 to 5 diamonds 50% of the time
    #   Drops: 'diamond:5:50'
    #
    # Drop example 2: drop 1 to 2 birch leaves 100% of the time
    #   Drops: 'leaves.2:1-2:100'
    #
    # Drop example 3: drop 0 to 5 diamonds 50% of the time AND drop 1 to 2 birch leaves 100% of the time
    #   Drops: 'diamond:5:50;leaves.2:1-2:100'
    #
    # Drop example 4: drop nothing
    #   Drops: ''
    #
    # Drop example 5: drop 0 to 1 diamond swords with a damage_all level 4 enchantment (a.k.a. Sharpness IV) 25% of the time
    #   Drops: 'diamond_sword,damage_all.4:1:25'
    #
    # Drop example 6: drop 0 to 1 potion type 2 (a.k.a. Swiftness) 25% of the time
    #   Drops: 'potion.2:1:25'
    #
    # Drop example 7: go crazy :P
    #   Drops: 'diamond_pickaxe,durability.3:1:25;diamond_sword,damage_all.5:1:25;potion.2:1-1:25'
    #
    # Coin reward examples:
    #
    # Coin example 1: award 0 to 10 coin 50% of the time
    #   Coin_Minimum: 0.0 
    #   Coin_Maximum: 10.0
    #   Coin_percent: 50.0
    #
    # Coin example 2: award 10 coin 100% of the time
    #   Coin_Minimum: 10.0 
    #   Coin_Maximum: 10.0
    #   Coin_percent: 50.0
    #
    # Coin example 3: award nothing
    #   Coin_Minimum: 0.0 
    #   Coin_Maximum: 0.0
    #   Coin_percent: 0.0
    #
    # Coin example 4: penalize 0 to 10 coin 50% of the time
    #   Coin_Minimum: -10
    #   Coin_Maximum: 0
    #   Coin_percent: 50.0
    #
    # Custom reward messages
    #
    #   &[0-9a-f] - color codes
    #   <plr> - display player name in a message
    #   <crt> - display creature name in a message
    #   <amt> - display amount in a message
    #   <itm> - display item used to kill in a message
    #
    # Message examples:
    #   NoReward_Message: '&7You slayed a &5<crt>&7 using a &3<itm>.'
    #   Reward_Message: '&7You are awarded &6<amt>&7 for slaying a &5<crt>.'
    #   Penalty_Message: '&7You are penalized &6<amt>&7 for slaying a &5<crt>.'
    #
    Blaze:
        Coin_Minimum: 2
        Coin_Maximum: 3
        Coin_Percent: 50.0
    CaveSpider:
        Drops: 'string:2:75'
        Coin_Minimum: 0.50
        Coin_Maximum: 1.50
        Coin_Percent: 50.0
    Chicken:
        Drops: 'feather:2:75;365:1:75'
        Coin_Minimum: 0.10
        Coin_Maximum: 2.00
        Coin_Percent: 1.0
    Cow:
        Drops: 'leather:2:75;raw beef:2:75'
        Coin_Minimum: 0.10
        Coin_Maximum: 0.50
        Coin_Percent: 1.0
    Creeper:
        Drops: 'sulphur:2:75'
        Coin_Minimum: 5.50
        Coin_Maximum: 10.50
        Coin_Percent: 50.0
    PoweredCreeper:
        Drops: 'sulphur:2:75'
        Coin_Minimum: 10.50
        Coin_Maximum: 15.50
        Coin_Percent: 50.0
    #
    # IMPORTANT NOTE:
    # This reward requires "classic" build of DeathTpPlus here http://tiny.cc/dtpclassic.
    # Also note that the penalty amount is multiplied by the number of deaths in the streak.
    DeathStreak:
        Coin_Minimum: -1.00
        Coin_Maximum: -1.00
        Coin_Percent: 100.00
        NoReward_Message: ''
        Reward_Message: '&7You earned &6<amt>&7 for that death streak!'
        Penalty_Message: '&7That death streak cost you &6<amt>&7.'
    EnderDragon:
        Coin_Minimum: 5.00
        Coin_Maximum: 10.50
        Coin_Percent: 100.00
    Enderman:
        Drops: 'ender pearl:1:75'
        Coin_Minimum: 1.00
        Coin_Maximum: 3.50
        Coin_Percent: 50.0
    Ghast:
        Drops: 'sulphur:2:75'
        Coin_Minimum: 3.50
        Coin_Maximum: 3.50
        Coin_Percent: 50.0
    Giant:
        Coin_Minimum: 8.50
        Coin_Maximum: 8.50
        Coin_Percent: 50.00
    #
    # IMPORTANT NOTE:
    # This reward requires "classic" build of DeathTpPlus here http://tiny.cc/dtpclassic.
    # Also note that the reward amount is multiplied by the number of kills in the streak.
    KillStreak:
        Drops: 'diamond:1:100'
        Coin_Minimum: 2.00
        Coin_Maximum: 2.00
        Coin_Percent: 100.00
        NoReward_Message: ''
        Reward_Message: '&7You earned &6<amt>&7 for that kill streak!'
        Penalty_Message: '&7That kill streak cost you &6<amt>&7.'
    MagmaCube:
        Coin_Minimum: 0.10
        Coin_Maximum: 2.00
        Coin_Percent: 50.00
    Monster:
        Coin_Minimum: 0.50
        Coin_Maximum: 1.50
        Coin_Percent: 50.0
    MushroomCow:
        Drops: 'leather:2:75;raw beef:3:75'
        Coin_Minimum: 0.10
        Coin_Maximum: 1.00
        Coin_Percent: 1.0
    Pig:
        Drops: 'pork:2:75'
        Coin_Minimum: 0.10
        Coin_Maximum: 1.00
        Coin_Percent: 1.0
    PigZombie:
        Drops: 'grilled pork:2:75'
        Coin_Minimum: 1.00
        Coin_Maximum: 3.50
        Coin_Percent: 50.0
    #
    # IMPORTANT NOTE: If you define Drops, and OverrideDrops is set to true, the victim's
    # inventory will be replaced! Also note that the amount awarded is taken from the victim.
    Player:
        Coin_Minimum: 5.00
        Coin_Maximum: 10.50
        Coin_Percent: 50.0
        NoReward_Message: ''
        Reward_Message: '&7You are awarded &6<amt>&7 for murdering &5<crt>&7.'
        Penalty_Message: '&7You are penalized &6<amt>&7 for murdering &5<crt>&7.'
    Sheep:
        Drops: 'wool:1:75'
        Coin_Minimum: 0.10
        Coin_Maximum: 2.50
        Coin_Percent: 1.0
    Silverfish:
        Coin_Minimum: 0.50
        Coin_Maximum: 0.50
        Coin_Percent: 50.0
    Skeleton:
        Drops: 'bone:2:75;arrow:2:75'
        Coin_Minimum: 1.00
        Coin_Maximum: 3.00
        Coin_Percent: 50.0
    Slime:
        Drops: 'slime ball:2:75'
        Coin_Minimum: 0.00
        Coin_Maximum: 2.00
        Coin_Percent: 50.00
    Snowman:
        Coin_Minimum: 0.50
        Coin_Maximum: 1.50
        Coin_Percent: 100.0
    Spawner:
        Coin_Minimum: 0.10
        Coin_Maximum: 15.00
        Coin_Percent: 50.0
        NoReward_Message: '&7You destroyed a &5<crt>&7 using a &3<itm>&7.'
        Reward_Message: '&7You are awarded &6<amt>&7 for destroying a &5<crt>&7.'
        Penalty_Message: '&7You are penalized &6<amt>&7 for destroying a &5<crt>&7.'
    Spider:
        Drops: 'string:2:75'
        Coin_Minimum: 0.50
        Coin_Maximum: 2.00
        Coin_Percent: 66.0
    Squid:
        Drops: 'ink sack:3:75'
        Coin_Minimum: 0.10
        Coin_Maximum: 0.50
        Coin_Percent: 25
    Wolf:
        Coin_Minimum: 0.50
        Coin_Maximum: 1.50
        Coin_Percent: 25
    AngryWolf:
        Coin_Minimum: 1.00
        Coin_Maximum: 2.00
        Coin_Percent: 50.0
    Villager:
        Coin_Minimum: 1.00
        Coin_Maximum: 2.00
        Coin_Percent: 1.0
    Zombie:
        Drops: 'rotten flesh:2:75'
        Coin_Minimum: 1.00
        Coin_Maximum: 3.50
        Coin_Percent: 50.0

Pretty much the default config. Running Vault

Startup log:

2011-12-27 05:48:35 [INFO] [ecoCreature] Loaded config defaults.
2011-12-27 05:48:35 [INFO] [ecoCreature] Found permissions provider.
2011-12-27 05:48:35 [INFO] [ecoCreature] Economy enabled.
2011-12-27 05:48:35 [INFO] [ecoCreature] 0.0.9b (All your death are belong to us!) enabled.

2011-12-27 05:48:32 [INFO] [Vault][Economy] Essentials Economy hooked.
2011-12-27 05:48:32 [INFO] [Vault][Economy] Essentials Economy found: Loaded
2011-12-27 05:48:32 [INFO] [Vault][Economy] iConomy 6 hooked.
2011-12-27 05:48:32 [INFO] [Vault][Economy] iConomy 6 found: Loaded
2011-12-27 05:48:32 [INFO] [Vault][Permission] PermissionsEx hooked.
2011-12-27 05:48:32 [INFO] [Vault][Permission] PermissionsEx found: Loaded
2011-12-27 05:48:32 [INFO] [Vault] - Warning Using PEX can cause SuperPerms compatibility issues with non-Vault enabled plugins.
2011-12-27 05:48:32 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system.
2011-12-27 05:48:32 [INFO] [Vault][Permission] PermissionsEx_Chat hooked.
2011-12-27 05:48:32 [INFO] [Vault][Chat] PermissionsEx found: Loaded
2011-12-27 05:48:32 [INFO] [Vault] Enabled Version 1.1.9-b115
mung3r commented 12 years ago

That's a warning message that there was an unrecognized mob. Do you know which mob was killed that corresponds with the warning message?

OhBlihv commented 12 years ago

It does it with all mobs killed. The console becomes spammed with this message.

No mob yields money, but the drops are still present.

mung3r commented 12 years ago

Hmm, every mob doesn't sound so good although it's something that I haven't seen as of late.

Do me a favor and post your default.yml config on pastie.org. I want to be sure I don't mess up copying your config from this issues thread. Also, what version of bukkit are your using?

OhBlihv commented 12 years ago

This server is running Craftbukkit version git-Bukkit-1.0.1-R1-b1597jnks (MC: 1.0.1) (Implementing API version 1.0.1-R1)

Default.yml: http://pastie.org/3080383

Firstly I edited the generated default.yml on my computer using bukkit 1597 (The version my server is running) Then I copy pasted it onto the server through SSH.

If that would have caused a paste error, something in the wrong place, Then would you recommend me regenerate it and change the variables through SSH?

mung3r commented 12 years ago

I just test drove your default.yml config on my test server and it's working like a champ.

Not sure if generating the default.yml on the actual server will fix things but let's give it shot.