Inactive [ECON] ecoCreature 0.2.2 - Mob & PVP Rewards [1.4.6]

Discussion in 'Inactive/Unsupported Plugins' started by mung3r, Aug 3, 2011.

  1. Offline

    mung3r

    [​IMG]
    ecoCreature 0.2.2 (Belay that nose-picking, Cadet!)
    Mob & PVP Rewards
    More plugins to try:
    MobRider - Finally, a proper use for saddles!
    DeathTpPlus - Death notifications & recall!

    Features:
    • Coin rewards, coin penalties and drops for:
      • Killing mobs
      • PVP
      • Kill streaks
      • Death streaks
      • Leveling
      • Breaking blocks
    • Share coin rewards with:
    • Increase or decrease coin rewards based on:
      • Biome (swampland, forest, etc.)
      • Environment (normal, nether, etc.)
      • Time of Day (day, night, etc.)
      • Weather (sunny, stormy)
      • Permissions Group (e.g. default, elite, etc.)
      • Factions (neutral, enemy, etc.)
      • Heroes party
      • mcMMO party
      • MobArena participants
      • WorldGuard region
      • Regios region
      • Residence region
      • Towny membership
      • Weapon used
    • Customize items drops to include:
    • DeathTpPlus rewards:
      • Rewards for kill streaks
      • Penalties for death streaks
    • Heroes rewards:
      • Rewards for mastering a class
      • Rewards for leveling
    • mcMMO rewards:
      • Rewards for leveling
    • Prevent exploits:
      • Camping around Mob Spawners
      • Mob farming
      • Limit projectile use (e.g. Bow & Arrow)
    • Multi-world support
    Usage Stats:
    [​IMG]
    --------------------------------------------------------------------------------------------------------

    Acknowledgements:
    The original ecoCreature was made by ChrisB. All credit goes to him for his creation. Since his plugin has gone inactive since rb740, I have decided to continue doing maintenance updates for his plugin.
     
  2. Offline

    mung3r

    I have located the bug. Posting a fix shortly.
     
  3. Offline

    PunJedi

    Very good, thank you.

    We await the fix :)
     
  4. Offline

    jazzman170

    http://www.megaupload.com/?d=6GUSYMGJ

    there ya go mung3r, there is my plugins folder. sorry about the long wait, i kept getting side tracked with another plugin and helping him smash out bugs by finding them haha. I hope u can figure this out because i sure as hell cant. i have tried different things and cant get it working :(
     
  5. Offline

    mung3r

    Please download the latest Vault.jar.

    Please download the latest Vault.jar.

    Not a problem. I'll have a look and let you know if I find anything.

    Update: It looks like you have both iConomy6 and Essentials economy. I think this may be the source of the problem.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  6. Offline

    jazzman170

    is essentials economy even in the plugins? :confused: i didnt think it was doing anything. i believe i tried to get rid of it at some point but its like embedded in essentials so i had no clue how to remove it completely.

    edit: just out of curiosity, do you use bpermissions or permissionsbukkit? im using permissionsbukkit and its just too hard to goto bpermissions :( i cant even find a bpermissions config file to see how its set up vs the permissionsbukkit :(

    edit2: just rememberd that your plugin was still doing the same thing even when i deleted all plugins and had only ecocreature, permissionsbukkit, and vault in the plugins folder. It still lets me get the custom drops from the creatures, but i get no kill messages, reward messages, or money rewards.
     
  7. Offline

    codename_B

    http://dev.bukkit.org/server-mods/bpermissions/

    Example file right there on the page.
     
  8. Offline

    mung3r

    Besides the 2 economy plugins, I noticed the ecoCreature.Creature.* permission entries were missing from your config.yml. I added the missing entries and deleted iConomy since you're already using Essentials.

    Here's a working copy of your plugins directory:
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 13, 2016
  9. Offline

    jazzman170

    how do i smash out essentials economy? i dont want that. i want to use iconomy6
     
  10. Offline

    EpicMule

    Thanks it worked!
     
    mung3r likes this.
  11. Offline

    PunJedi

    Works like a charm, console is happy.

    Thank you very much. Now just make one called EcoPeople :) Customized for if you kill different class levels.

    So a Veteran killing a Default would only get less than a coin, but if a Default kills a Veteran they would get much more.....

    Ehhh just a thought. Again, Thank you very much for a simply awesome method for Survival servers to have a hybrid economy going.
     
    mung3r likes this.
  12. Offline

    mung3r

    I do have something simpler in the works for PVP rewards. Stay tuned :)

    Update: Just added rewards for PVP in 0.0.7. Enjoy!

    Since you're using EssentialsProtect.jar and EssentialsSpawn.jar, the core Essentials.jar is required which includes the economy stuff. Unless you're willing to live without those two Essentials plugins, I'm afraid you're stuck with the Essentials economy stuff.

    Just added this feature

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  13. Offline

    kahlilnc

    Yay! PVP rewards !
     
  14. Offline

    jazzman170

    ya i can do without essentials protect and essentials spawn. just delete those 2 and it should be good?

    edit: ok i just deleted essentials entirely and it still doesnt work... although when i kill a pig by a spawner it tells me i get no reward because spawner
     
  15. Offline

    BlancoLanda

    I cannot make ecOCreature work on RB1317, my the error:

    Code:
    16:15:37 [SEVERE] Could not pass event ENTITY_DEATH to ecoCreature
    java.lang.IncompatibleClassChangeError: Expecting non-static method ru.tehkode.p
    ermissions.bukkit.PermissionsEx.has(Lorg/bukkit/entity/Player;Ljava/lang/String;
    )Z
            at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.player
    Has(Permission_PermissionsEx.java:85)
            at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.has(Pe
    rmission_PermissionsEx.java:80)
            at se.crafted.chrisb.ecoCreature.managers.ecoRewardManager.registerCreat
    ureReward(ecoRewardManager.java:68)
            at se.crafted.chrisb.ecoCreature.listeners.ecoEntityListener.onEntityDea
    th(ecoEntityListener.java:76)
            at org.bukkit.plugin.java.JavaPluginLoader$64.execute(JavaPluginLoader.j
    ava:707)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(C
    raftEventFactory.java:288)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:545)
            at net.minecraft.server.EntityLiving.die(EntityLiving.java:528)
            at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:469)
    
            at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:44
    )
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:721)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:916)
            at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :500)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Any help?
     
  16. Offline

    mung3r

    That's a PermissionsEx plugin bug with rb1317. You'll have to wait until the author of PermissionsEx updates his plugin or switch to another permissions plugin that works with rb1317.

    Just to be absolutely clear, this has nothing to do with ecoCreature and everything to do with PermissionsEx being incompatible with rb1317.

    I have three bits of good news: 1) I noticed that your config.yml has a specific entry for yourself. That entry didn't inherit any ecoCreature permissions which is why it doesn't work for you specifically and 2) I had the econ order of precedence incorrect - since iConomy loads last it takes precedence over the other econ plugins which means 3) you get to keep Essentials.

    Try out this new <Edit by Moderator: Redacted mediafire url>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 13, 2016
  17. Offline

    Banana937

    @mung3r Thanks for adding my suggestion :D
     
    mung3r likes this.
  18. Offline

    MuttsNuts

    mung3r likes this.
  19. Offline

    jazzman170

     
    Last edited by a moderator: Nov 13, 2016
    mung3r likes this.
  20. Offline

    h0rn

    Works like a charm. And very easy to configure aswell, cookies to you sir!

    One question though, the pvp awards:
    is it the tab "monster" ? Since I didn't find anything about human_creatures in the config tab.
     
  21. Offline

    mung3r

    Since there are no custom drops for players, there is no "creature" entry for the player in the RewardTable.

    The way the PVP rewards work right now is based on how much the victim is penalized for being killed. If you want to adjust the PVP reward amount, change the value of PenalizeAmount. Also, if the victim has no coin/money, then it follows that there is no PVP reward.

    To illustrate, here's an example that will enable PVP rewards for up to 0.5% of the victim's coin/money:

    Code:
    System:
        Hunting:
            PenalizeDeath: true
            PenalizeType: true
            PenalizeAmount: 0.5
            PVPReward: true
     
  22. Offline

    NotYetRated

    CB 1317
    EC 0.0.7

    When killing a Mob

    Code:
    2011-10-14 00:28:24 [SEVERE] Could not pass event ENTITY_DEATH to ecoCreature
    java.lang.IncompatibleClassChangeError: Expecting non-static method ru.tehkode.permissions.bukkit.PermissionsEx.has(Lorg/bukkit/entity/Player;Ljava/lang/String;)Z
    at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.playerHas(Permission_PermissionsEx.java:85)
    at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.has(Permission_PermissionsEx.java:80)
    at se.crafted.chrisb.ecoCreature.managers.ecoRewardManager.registerCreatureReward(ecoRewardManager.java:99)
    at se.crafted.chrisb.ecoCreature.listeners.ecoEntityListener.onEntityDeath(ecoEntityListener.java:76)
    at org.bukkit.plugin.java.JavaPluginLoader$64.execute(JavaPluginLoader.java:707)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:288)
    at net.minecraft.server.EntityLiving.a(EntityLiving.java:545)
    at net.minecraft.server.EntityLiving.die(EntityLiving.java:528)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:469)
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:44)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:721)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:916)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) 
    Permissions. Using PEX with "permissions" bridge thing.

    Code:
        Members:
            default: true
            permissions:
            - essentials.kit
            - towny.nation.*
            - towny.town.spawn.town
            - towny.town.*
            - lwc.protect
            - essentials.sethome
            - essentials.home
            - essentials.mail.*
            - essentials.motd
            - essentials.msg
            - essentials.tpaccept
            - essentials.tpdeny
            - falsebook.blocks.*
            - falsebook.blocks.readbooks
            - iConomy.payment
            - worldguard.stack
            - mobarena.arenas.*
            - mobarena.classes.Chef
            - mobarena.classes.Oddjob
            - mobarena.classes.Archer
            - mobarena.use.*
            - ecoCreature.Creature.*
     
  23. Offline

    mung3r

    You need to upgrade PEX to 1.15.
     
  24. Offline

    NotYetRated

    Balls, sorry to of wasted your time. Thanks for the great plugin!

    Also, how do you put the lists I posted into the "spoiler" type boxes?
     
  25. Offline

    mung3r

    No time wasted - it's valuable info for others experiencing the same issue.

    For the spoiler boxes, just do the following:
    Code:
    [spoiler="name of my spoiler"]
    stuff in my spoiler
    [/spoiler]
     
  26. Offline

    NotYetRated

    CB 1317
    Eco 0.0.7
    PEX 1.15

    Code:
    2011-10-14 01:15:52 [SEVERE] Could not pass event ENTITY_DEATH to ecoCreature
    java.lang.IncompatibleClassChangeError: Expecting non-static method ru.tehkode.permissions.bukkit.PermissionsEx.has(Lorg/bukkit/entity/Player;Ljava/lang/String;)Z
    at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.playerHas(Permission_PermissionsEx.java:85)
    at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.has(Permission_PermissionsEx.java:80)
    at se.crafted.chrisb.ecoCreature.managers.ecoRewardManager.registerCreatureReward(ecoRewardManager.java:99)
    at se.crafted.chrisb.ecoCreature.listeners.ecoEntityListener.onEntityDeath(ecoEntityListener.java:76)
    at org.bukkit.plugin.java.JavaPluginLoader$64.execute(JavaPluginLoader.java:707)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:288)
    at net.minecraft.server.EntityLiving.a(EntityLiving.java:545)
    at net.minecraft.server.EntityLiving.die(EntityLiving.java:528)
    at net.minecraft.server.EntityCreeper.die(EntityCreeper.java:87)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:469)
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:44)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:721)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:916)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) 
     
  27. Offline

    mung3r

    I have the same setup working on my test server. The only other thing I can think of is getting the latest version of Vault.jar.
     
  28. Offline

    NotYetRated

    Good idea, will give it a shot! TY.
     
  29. Offline

    BlancoLanda

    @NotYetRated tell me if you fix it with last Vault version, I have the same problem with ecoCreature and PEX.

    EDIT: Yeahhh it got fixed with upgrading Vault!
     
    mung3r likes this.
  30. Offline

    PunJedi

    There a chance of allowing admins to set the amount that is gained from PvP rewards?

    Taking half the money from a player on our server could lead to some very heated arguments lol.

    Would be nice to have the same "Mob Money Adjustment" you see in the yaml, but for the Player rewards as well.


    Other than that, your plugin has been a key component on our server and we thank you for your work.
     
  31. Offline

    mung3r

    You must have been reading my mind :).

    I've been thinking of removing the dependency between the death penalty and the pvp reward. There are some scenarios where a death penalty should not be given unless it's from PVP. Also, it would be nice to adjust them separately as you've described.
     

Share This Page