Inactive [ECON/MECH] MoneyDrop v1.6.2 - Drop tangible virtual money from players and mobs! [Spout] [1.2.5-R1]

Discussion in 'Inactive/Unsupported Plugins' started by DrakeSpirit, Aug 24, 2011.

  1. [​IMG]



    What does it do?
    It does what it says on the tin: MoneyDrop drops money.
    When a player or mob dies he will drop a configurable amount of virtual money (read: iConomy money) on the ground with the other loot he had.
    This money can be picked up by other players just as they would pick up normal items. Instead of going into their inventory, the money will go directly into their wallet.

    Sounds good, but does it support my economy plugin?
    MoneyDrop supports iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy, eWallet, EconXP thanks to Vault.

    So how do I set this thing up?
    Step 1: Make sure you've got one of the supported economy plugins set up on your server.
    Step 2: Download and set up the Vault plugin.
    Step 3: Download MoneyDrop.jar and place it in your plugins folder.
    Step 4: Start up your server and shut it back down again.
    Step 5: Edit the .yml files in plugins/MoneyDrop with your favorite texteditor.
    Step 6: Start up your server and you're good to go!

    Whoa there, what's all the stuff in .yml files for?
    MoneyDrop creates a seperate .yml for each world you're using. They'll be named the same as the world they affect. The options in each file are the same, so if you want to use the same settings for each world, you can fill in 1 file and copy the contents to the other files.

    Dropped-Value is the value of 1 money item. If you set this to 0.1 and you let a sheep drop 64 items, the player who picks up the stack will receive 6.4 money. Keep in mind that when you set dropped amounts later on, you will be setting the quantity of items dropped, not the quantity of money.

    Player-Dropped-Amount is the amount of money items a player drops/keeps when he dies.
    40 will cause a player to lose up to 40 money when he dies, -40 will cause a player to lose all but 40 money and 40% will cause a player to lose 40% of their money.
    You can set a seperate value for each deathcause. Keep in mind that lava falls under fire, not other.
    % is the actual amount of money lost, not the number of items dropped. If the money can't be fully converted into items (e.g. 14 money with a money value of 5), the grim reaper will keep the change (so only 2 items will drop, for a total of 10 money).

    Dropped-Material-ID is the id of the material dropped money will look like. The default is 266 (gold bar).
    Unfortunatly, materials with multiple versions such as dyes will be invisible except for the shadow they cast.
    When you change this, all money that was already on the ground when you shut down the server will keep the old appearance, but can still be picked up as money.

    Pickup-Chat-Notification-Enabled will send a chat message to the player with the amount of money he picked up.
    Pickup-Achievement-Notification-Enabled will do the same, but in an achievement window if your server and the player is running Spout.
    You can set the displayed message with Pickup-Chat-Notification-Message, Pickup-Achievement-Notification-Message and Pickup-Achievement-Notification-Title.
    The word "<money>" (without the quotes) will be replaced with the picked up value.

    Pickup-Sound will play a sound if your server and the player is running Spout.
    Put an url like http://dl.dropbox.com/u/11950680/MoneyDrop/coin.wav here. Accepted file formats are .wav, .ogg and .midi.
    Keep in mind that players will have to download and listen to this, so don't put something huge like Beethoven's 5th here!

    Independent-Drops sets if the money is added to the list of mob drops or if it's dropped independant of it.
    If other plugins prevent items from dropping, but you'd still like MoneyDrop to drop money, set this to true.

    Mobspawner-Drops-Allowed will prevent monsters spawned from mob spawners from dropping money if this is set to false.

    Mobs-Only-Drop-On-Kill will only make mobs drop money if they are finished off by a hit from a player if set to true. If set to false, mobs will always drop money on death.

    The WorldGuard settings allow you to set wether or not a player/mob should drop money depending on the region it's in.
    Global-Mob-Drops is the general setting wether or not mobs drop money. This will be overridden by specified regions.
    Global-Player-Drops does the same, but for players.
    Mob-Drop-Enabled-Regions is the list of region names where mobs will drop money.
    Mob-Drop-Disabled-Regions is the list of region names where mobs won't drop money.
    Player-Drop-Enabled-Regions is the list of region names where players will drop money.
    Player-Drop-Disabled-Regions is the list of region names where players won't drop money.
    If any of these regions overlap, the smallest region will take effect.

    You can configure money drops per mob:
    Dropped-Minimum is the minimum amount of money a mob will drop.
    Dropped-Maximum is the maximum amount. If it's lower than the minimum amount, it'll be set to the minimum amount.
    Dropped-Frequency is the chance a mob has to drop money. 1.0 is 100%, 0.5 = 50%, etc.

    If Spout or WorldGuard are conflicting, you can disable MoneyDrop support for them by setting their Enabled properties to false.

    How can I get my own plugins to play nice with yours?
    If you're messing with player/monster drops and you don't want MoneyDrop to be affected, change Independent-Drops to true.

    If you want to poke around in my plugin, the source is included in the jar. You're free to mess around with it, but give me credit.

    If you want to build on my plugin, you can use dropMoney(Location location, int amount) to drop currency at that location.
    You can use the getWorldSettings method to take a look at the settings for that world, so if for example you want to know the material id used in the world "world", use MoneyDrop.getWorldSettings("world").getMaterialID().

    This stuff's pretty awesome, can I buy you a drink?

    [​IMG]

    Something's not working right, can you help me out?
    Of course, but I'll need the following information:
    • How and when it happened, so I can try to replicate it on my test server
    • The entire error log
    • The contents of the affected world's .yml file
    • A list of the plugins you're using that affect economy, item pickups or mob deaths
    • The MoneyDrop version you're using
    Please check if you're running the latest version of your plugins before posting.


    Changelog
    1.6.2
    • Added support for Ocelots, Cats and Iron Golems.
    1.6.1
    • Updated for 1.1-R5.
    1.6
    • Added Minecraft 1.0 creatures.
    • MoneyDrop now requires Vault instead of Register.
    1.5.1
    • Minor bugfixes.
    1.5
    • Support added for multiple worlds.
    • Fixed a bug that allowed broke players to drop money.
    1.4
    • MoneyDrop now requires Register as a seperate plugin.
    • Preferred Economy now needs to be set through Register.
    • Added Mobs-Only-Drop-On-Kill property.
    1.3.2
    • Fixed a bug with Register.
    • MoneyDrop now complains when you're using an invalid Material ID.
    1.3.1
    • Fixed spout support.
    • Fixed mobspawner drops.
    • Added support for the giant and human mobs.
    1.3
    • Added support for 1.8 mobs.
    • Optional plugins can now be disabled.
    • The value of a single dropped item can now be set (decimal support).
    • Pickup notifications are now customizable.
    • A preferred economy plugin can now be specified.
    • You can now choose whether or not monsters spawned from mobspawners drop money.
    1.2
    • You can now set a different value for each player death cause.
    • Fixed a bug that caused mobs to always drop the minimum amount.
    1.1
    • Added % support to the Player-Dropped-Amount setting.
    • Added WorldGuard region support
    • MoneyDrop doesn't discriminate money based on looks anymore.
    1.0
    • Initial release
     
  2. Updated the beta with another possible fix. Let me know if this one works.

    @demdpie check the previous messages, some users have posted their configs. Is one (or more) of the options poorly explained?

    edit: Beta's over.
     
  3. Offline

    Starrk

    Here's the full error. Any help is appreciated.

    Could not pass event ENTITY_DEATH to MoneyDrop
    java.lang.NullPointerException
    at me.drakespirit.plugins.moneydrop.MDEntityListener.dropIndieMonnies(MDEntityListener.java:286)
    at me.drakespirit.plugins.moneydrop.MDEntityListener.mobDrop(MDEntityListener.java:275)
    at me.drakespirit.plugins.moneydrop.MDEntityListener.onEntityDeath(MDEntityListener.java:218)
    at org.bukkit.plugin.java.JavaPluginLoader$62.execute(JavaPluginLoader.java:677)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:285)
    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:720)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:915)
    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 net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    >
     
  4. Offline

    JStylow

    THANKS! It works! Thank u so much:3
     
  5. Offline

    Fiddy_percent

    still can't pick it up :( I have no errors to show I only have Iconomy 6 spout and your plugin :( the gold just sits there trolling me
     
  6. Offline

    AndyFox42

    Same here
     
  7. Offline

    T4L_Goose

    This plugin works great for me and I'm using a ton of other plugins.
     
  8. Offline

    LucaZanna

    i'm so sorry about my bug :( DrakeSpirit you are very helpful but i didn't want ruin your weekend
     
  9. Offline

    Zarius

    @DrakeSpirit

    A solution to the problem with Register could be to compile it into your plugin with a different package name.
     
  10. @Zarius I did that in the second beta build, it seems to work for some people, but not everyone.
    @LucaZanna don't worry about it, I won't rest untill it's bug-free for everyone!
    @Starrk it might be caused by an invalid Dropped-Material-ID, could you post your config.yml so I can check it?

    I've updated the beta again, try it if you're still having problems and let me know if it works.

    edit: Beta's over.
     
    Starrk likes this.
  11. Offline

    JStylow

    Okay i got another problem now... I dont know why its caused but when i pick it up it works fine, it tells U u picked up the money but when i go to my balance it doesnt add up!
     
  12. @JStylow
    What was the amount you picked up?
    What economy plugin are you using?
    Are there any other economy plugins running?
    If yes: which ones, did you check their balances, did you specify a preferred plugin in your config.yml and if so, which one?
     
  13. Offline

    demdpie

    I tried a new economy plug in and it works perfectly, maybe its just iconomy that plays up?
     
  14. Offline

    Starrk

    Yeah it worked, I tried using 371 or gold nuggets but I switched it back. it works great now thanks!!
     
  15. Offline

    gsgrego

    Hmm having the no pick up bug and setting the config for iConomy as the preferred economy broke the server.

    Tried the beta still cant pick up the cash.
     
    retool2 likes this.
  16. Offline

    Vixolus

    Are you using iConomy 6 too? I can't get it to add money to iConomy after killing mobs. It worked before, now it doesn't.
     
    retool2 likes this.
  17. Offline

    Zarius

    If you've given your version of Register a unique package name then that problem should be gone. Players might still see a register clash if they have two other plugins using default package names.
     
  18. Offline

    Fiddy_percent

    its Iconomy 6 that isnt working with this plugin
     
  19. Offline

    JoePrime

    Is your inventory full? I was also having this problem, no errors, nothing. I then dropped a couple items, cleared a space in my inventory, and voila I could pickup money! when i walk on money with a full inventory - no pickup!

    So, I would guess the actual "pickup" part of the plugin needs to be reworked to ignore inventory limitations. :)
     
  20. Offline

    EmpiricalDepth

    On the line for "preferred enconomy" Im not sure what i'm supposed to put there.. just the plugin name exactly as the folder is called that the plugin creates? for examp 'essentials' scince that is what the folder is called for that plugin? if theres a specific way to name them, please make a list of the plugins that work with it as they should be reffered to on that line... thank you!
     
  21. Offline

    Fiddy_percent

    :/ I made sure I had space. are you using iconomy 6?
     
  22. Offline

    JoePrime

    I also use Essentials, I just left that line blank and it works perfectly.
     
  23. Offline

    EmpiricalDepth

    Thanks joe but I may be changing economies, just wanted to know if it needed ' around it' or if its the folder name for any economy.. even iconomy on that line seems to still let it use essentials
     
  24. Offline

    silenceheaven

    It seems to be iConomy 6 that doesn't work with this plugin. Please fix this!
    Thanks!
     
  25. Offline

    nicquehen

    Same probleme here :)

    (b1185 iconome 6 )

    Gold lingot drop but no notification / no money

    Code:
    2011-09-26 20:41:41 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to MoneyDrop
    java.lang.IncompatibleClassChangeError: Expecting non-static method com.nijikokun.register.payment.Methods.hasMethod()Z
        at me.drakespirit.plugins.moneydrop.MDPlayerListener.onPlayerPickupItem(MDPlayerListener.java:26)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:377)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityItem.a_(EntityItem.java:135)
        at net.minecraft.server.EntityHuman.j(EntityHuman.java:343)
        at net.minecraft.server.EntityHuman.s(EntityHuman.java:335)
        at net.minecraft.server.EntityLiving.s_(EntityLiving.java:280)
        at net.minecraft.server.EntityHuman.s_(EntityHuman.java:153)
        at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:213)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:305)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:618)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        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:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-26 20:41:42 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to MoneyDrop
    java.lang.IncompatibleClassChangeError: Expecting non-static method com.nijikokun.register.payment.Methods.hasMethod()Z
        at me.drakespirit.plugins.moneydrop.MDPlayerListener.onPlayerPickupItem(MDPlayerListener.java:26)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:377)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityItem.a_(EntityItem.java:135)
        at net.minecraft.server.EntityHuman.j(EntityHuman.java:343)
        at net.minecraft.server.EntityHuman.s(EntityHuman.java:335)
        at net.minecraft.server.EntityLiving.s_(EntityLiving.java:280)
        at net.minecraft.server.EntityHuman.s_(EntityHuman.java:153)
        at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:213)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:305)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:618)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        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:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-09-26 20:41:43 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to MoneyDrop
    java.lang.IncompatibleClassChangeError: Expecting non-static method com.nijikokun.register.payment.Methods.hasMethod()Z
        at me.drakespirit.plugins.moneydrop.MDPlayerListener.onPlayerPickupItem(MDPlayerListener.java:26)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:377)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityItem.a_(EntityItem.java:135)
        at net.minecraft.server.EntityHuman.j(EntityHuman.java:343)
        at net.minecraft.server.EntityHuman.s(EntityHuman.java:335)
        at net.minecraft.server.EntityLiving.s_(EntityLiving.java:280)
        at net.minecraft.server.EntityHuman.s_(EntityHuman.java:153)
        at net.minecraft.server.EntityPlayer.b(EntityPlayer.java:213)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:305)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:618)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        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:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  26. Offline

    EmpiricalDepth

    just another user here.. ive looked at the iconomy thread and appearently theres alot of probs with iconomy 6 so I would make a guess that this plugin is not what needs fixing but iconomy 6.. somewhere in the iconomy thread there is a link posted to download iconomy 5 which has been said to work on 1185 so in the meantime, if anyone feels like it they could try that.. I just switched to BOSEcon and everything works fine
     
  27. Offline

    LucaZanna

    I'll try with BOSE :)

    Iconomy fail, BOSE win, problem fix ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  28. Since you're all agreeing it's iConomy's problem, I'll be releasing 1.3.2.
    This doesn't fix the iConomy problem, but hopefully it'll sort itself out in due time.

    Also, you can leave the preferred economy line blank if you're not using multiple economy plugins. If you're not sure what to put there, it's the plugin's name. You can view the name in the plugin.yml file included in its .jar. Just open the jar with an archive manager like 7zip and the plugin.yml file with your favorite text editor.
    Short list:
    Essentials: 'Essentials'
    BOSEconomy: 'BOSEconomy'
    iConomy: 'iConomy'
    MultiCurrency: 'Currency'
     
  29. Offline

    krosk

    Hey DrakeSpirit, I've done a few changes to your code. I'll be uploading your code along with my changes to github if you don't care about it because I love how easy is it to manage. Is it ok?
    https://github.com/krosk93/MoneyDrop
    That's the repository, I'll be uploading soon the experimental branch with my changes.

    Moreover, a git repository should allow other users to help you in the development.
     
  30. Offline

    EmpiricalDepth

    Thanks! on both notes XD
     
  31. Offline

    MJRamon

    @DrakeSpirit
    This plugin, 1185 Bukkit, iConomy 6
    It says, that I picked up money, no console errors, but there is no money. Maybe it's because iConomy now has
    /money give <name> <amount>

    instead of old /money grant?
     

Share This Page