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. Offline

    TomLoveThisSite

    @DrakeSpirit Thanks for your help i will try it :)
    I Hope it will work!!

    Okay i deleted it and replace the other... then it says Missing craftbukkit 1.0.0 snap....jar
    oke i did it over a time and i placed the new one in the map and deleted nothing and then it says

    Show Spoiler
    13:39:20 [SEVERE] Could not pass event ENTITY_DEATH to MoneyDrop
    java.lang.NoClassDefFoundError: org/bukkit/entity/MagmaCube
    at me.drakespirit.plugins.moneydrop.MDEntityListener.onEntityDeath(MDEnt
    ityListener.java:188)
    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:627)
    at net.minecraft.server.EntityLiving.die(EntityLiving.java:603)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:499)

    at net.minecraft.server.EntityAnimal.damageEntity(SourceFile:143)
    at net.minecraft.server.EntityHuman.f(EntityHuman.java:792)
    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.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.entity.MagmaCube
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 18 more
    13:39:23 [INFO] Tom lost connection: disconnect.quitting
    13:39:23 [INFO] Connection reset


    That entity death off magmacube!
    What's that?
    Above at the spoiler you can find it
     
  3. @TomLoveThisSite It means it can't find the file for the Magma Cube mob in the crafbukkit jar. This usually means that your server is running on an older minecraft version that doesn't have the mob yet.
    Did you remember to rename the new craftbukkit to the same name the old one had?
     
  4. Offline

    TomLoveThisSite

    @DrakeSpirit Thanks Thanks Thanks!!!!! I love it!! it works!!! Thank you soooo much!

    Good plugin!!
     
  5. Offline

    Clucky

    I stated I wasn't using it yet in my PS... However gratz on figuring out whatever your problem was.
     
  6. Offline

    dragonking

    can you enable the plugin to use item id's such as 318:1002? i would like to use my Drack coin sprite on my server that i used http://dev.bukkit.org/server-mods/spoutmaterials/ to get it there.
    [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]
    btw you plugin runs really great and the spout feature is also a nice thing to have.
     
  7. Offline

    harricane99

    Can you help me? When ever i run it when i have my settings entered in the .yml file, cmd when I run the server says "mapping isn't allowed here" and points to a random colin :)) and i've tried it multiple times.

    Thanx
     
  8. Offline

    TomLoveThisSite

    @harricane99 look at my awnsers i had that problem too :(
    I don't know how to fix it anymore so look at my other awnsers.
     
  9. Offline

    harricane99

    got it to work edited config file with notepad++
     
  10. Offline

    Sonorpearl

    Why does Player canĀ“t pickup Money with a full Inv?
    I think it is not the same -> Money and Drops.
     
  11. @dragonking Any item with a damage value is not supported by MoneyDrop atm. However, Spout materials support is an often requested feature, so it might be added some day.

    @harricane99 Glad you got it to work.

    @Sonorpearl Because Minecraft treats the dropped money as an item untill a player tries to pick it up. And for a player to be able to pick something up, they need to have an available inventory space.
     
  12. Offline

    Jochum

    I love this plugin
     
  13. Offline

    dragonking

    DrakeSpirit : thanks for the reply and i hope to see this feature soon :) keep up the good work!
     
  14. Question:
    If group of 5 players kill enderdragon and ive set these configs
    Code:
      Ender-Dragon:
        Dropped-Minimum: 300
        Dropped-Maximum: 5000
        Dropped-Frequency: 1.0
    
    does EACH and EVERY player get this drop or does it share between all?
     
  15. Semirotta The money will drop on the ground and will go to the player who picks it up.
    Since you're dropping between 300 and 5000 monnies, there should be enough time for each player to pick up part of the spoils.
    However there will always be players that end up picking up more than the others.

    Hope that helps!
     
  16. helps a lot. Thank you for fast response!
     
  17. Offline

    DaPope13

    I have Vault, And iConomy, nothing else that deals with drops as far as plugins go. What would cause it to have the error,

    16:02:32 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to MoneyDrop
    java.lang.NullPointerException
    at me.drakespirit.plugins.moneydrop.MDPlayerListener.onPlayerPickupItem(MDPlayerListener.java:27)
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:401)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:340)
    at net.minecraft.server.EntityItem.a_(EntityItem.java:135)
    at net.minecraft.server.EntityHuman.k(EntityHuman.java:352)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:344)
    at net.minecraft.server.EntityLiving.y_(EntityLiving.java:339)
    at net.minecraft.server.EntityHuman.y_(EntityHuman.java:158)
    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:312)
    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:96)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:534)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  18. Offline

    RuNtHeShOw10

    i installed it but its not working i did the steps and it doesnt work do i have to do something else
     
  19. DaPope13 That error is caused by MoneyDrop not being connected to your economy plugin. Are you having issues with Vault?
    RuNtHeShOw10 You can start by not quoting my huge post. Then you can give me the information I asked for in that huge post you quoted.
     
  20. Offline

    Fuzzwolf

    Is it possible to make users drop a single item on death which contains the player's dropped money, no matter the value? I'd like everybody to drop a tangible single gold bar which equates to however much money they actually lost. Setting values per dropped item doesn't quite work for me due to the large difference between the balances of new players and aristocrats. If I set it too high, players with little money don't drop anything. If I set it too low, when the aristocrats die they crash the server.

    Is there any possible away to get away with this? If not, take this as a suggestion. :D
     
  21. Fuzzwolf This isn't possible with MoneyDrop atm, and suggestion noted :).
     
  22. Offline

    Levi3300

    i don't mean to add another problem to the list but this is my problem, i edit it the way i want it to be, i start the server up and its in the list of plugins, i have no errors what so ever, but the money just wont give and i checked it with /money command and its still stays the same, i go to check the yml file again and its back to the way it was before i edited it :\, plz help this plugin looks really awesome. im using iconomy
     
  23. Levi3300 Could you post a copy of your edited yml?
     
  24. Offline

    Levi3300

    This is without changing numbers

    Mobspawner-Drops-Allowed: true

    Mobs-Only-Drop-On-Kill: false

    Dropped-Material-ID: 371

    Dropped-Value: 1.0

    Enabled: true

    Pickup-Sound: ''

    Pickup-Achievement-Notification-Enabled: true

    Pickup-Achievement-Notification-Title: $$$

    Pickup-Achievement-Notification-Message: Picked up <money>$

    Pickup-Chat-Notification-Enabled: true

    Pickup-Chat-Notification-Message: Picked up <money>$

    Global-Mob-Drops: true

    Mob-Drop-Enabled-Regions:
    - exampleregionname1
    - exampleregionname2

    Mob-Drop-Disabled-Regions:
    - exampleregionname

    Global-Player-Drops: true

    Player-Drop-Enabled-Regions:
    - exampleregionname

    Player-Drop-Disabled-Regions:
    - exampleregionname

    Independent-Drops: false

    Mob-Attack: '0'

    Player-Attack: '0'

    Block-Explosion: '0'

    Block-Contact: '0'

    Drowning: '0'

    Fall: '0'

    Fire: '0'

    Suffocation: '0'

    Suicide: '0'

    Other: '0'

    Dropped-Minimum: 200

    Dropped-Maximum: 200

    Dropped-Frequency: 1.0

    Settings:

    Mobspawner-Drops-Allowed: true

    Mobs-Only-Drop-On-Kill: false

    Dropped-Material-ID: 371

    Dropped-Value: 1.0

    Spout:

    Enabled: true

    Pickup-Sound: ''

    Pickup-Achievement-Notification-Enabled: true

    Pickup-Achievement-Notification-Title: $$$

    Pickup-Achievement-Notification-Message: Picked up <money>$

    Pickup-Chat-Notification-Enabled: true

    Pickup-Chat-Notification-Message: Picked up <money>$

    WorldGuard:
    Enabled: true

    Global-Mob-Drops: true

    Mob-Drop-Enabled-Regions:
    - exampleregionname1
    - exampleregionname2

    Mob-Drop-Disabled-Regions:
    - exampleregionname

    Global-Player-Drops: true

    Player-Drop-Enabled-Regions:
    - exampleregionname

    Player-Drop-Disabled-Regions:
    - exampleregionname

    Independent-Drops: false

    Player-Dropped-Amount:

    Mob-Attack: '0'

    Player-Attack: '0'

    Block-Explosion: '0'

    Block-Contact: '0'

    Drowning: '0'

    Fall: '0'

    Fire: '0'

    Suffocation: '0'

    Suicide: '0'

    Other: '0'

    Mobs:

    Blaze:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Cave-Spider:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Chicken:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Cow:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Creeper:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Ender-Dragon:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Enderman:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Ghast:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Giant:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Human:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Magma-Cube:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Mooshroom:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Pig:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    PigZombie:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Sheep:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Silverfish:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Skeleton:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Slime:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Snow-Golem:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Spider:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Squid:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Villager:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Wild-Wolf:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Tamed-Wolf:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    Zombie:

    Dropped-Minimum: 0

    Dropped-Maximum: 0

    Dropped-Frequency: 0.0

    it even reverts all my numbers back to zero again

    never mind i got it to work, i pasted the oddball format it was in, in the reply box and it put it the way it should be :D

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

    Le_Sop

    My players are having trouble picking up items, when they pick them up they go to their inventory instead of their wallet.

    Could not pass event PLAYER_PICKUP_ITEM to Moneydrop is the error I think.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  26. Le_Sop Could you check your server log and post the entire error please?
     
  27. Offline

    Iyeru

    Does it require Spout? if it does, can you send me to a plugin that supports iconomy? Because it seems MobDrops is no longer updated.
     
  28. Offline

    Le_Sop

    How do I get my server log?
    You can't copy and paste so how?
     
  29. Iyeru It only requires Spout if you want to use the Spout features. The core functionality is there without Spout.
    The Vault plugin however, is required for MoneyDrop to run, since it's Vault that connects to your economy plugin.

    Le_Sop It's possible to copy and paste in the console. That asside, I was referring to the server.log file. Open it with your preferred text editor and copy the error from there.
     
  30. Offline

    Le_Sop

    I seem to be getting some other errors, can anyone else help me with those or should I go to their individual threads?
    http://pastebin.com/V0YNmxSc
    Grr, it's been a while since I used BB Code, HTML seems much easier now (wut) then it.
     

Share This Page