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

    Timothy Graham

    Very nice Ill have to check this out!
     
  3. Offline

    Dec64

    This is very cool, wonder how it would go with MobArena and such tho...any chance in the future to hook into worldguard regions and deny dropping money in the regions?
     
  4. Offline

    Cosmic Break

    any screenshots? does an actual money item drop?
     
  5. Offline

    Dec64

     
    M1sT3rM4n likes this.
  6. Offline

    strupan

    Yes, it drops an actualy item, in our server, I tested it and whenever I kill a player, it drops a slime ball (which I chose to pick) and when I pick it up, it turns into virtual money, (means I didn't actually pick up anything but it auto converts to Vmoney)

    really awesome plugin, thanks drake


    edit: oh and it can make custom sounds when you pick up the money !!@!
     
    kahlilnc likes this.
  7. Offline

    BioRage

    Look's great!

    Question

    So if we leave it to default, it should have no problem in user's getting a free gold_bar at all?
     
  8. Offline

    morizuki

    in Player-Dropped-Amount can u support percentage here?
     
  9. Version 1.1 is released!

    Dec64: MoneyDrop now supports regions, upgrade if you want to make use of them!
    Cosmic Break: An actual item of your choice drops.
    BioRage: As long as MoneyDrop is running, al items dropped as money will remain money.
    morizuki: Percentage support added in 1.1!
     
  10. Offline

    Dec64

    awesome! will set this up on my server right now, great work.
     
  11. Offline

    strupan

    sweet, new version.

    great thinkin morizuki, the percentage is a nice addition
     
  12. Offline

    Sooks

    Can you add an option where if you die by anything except players, you won't lose money?
     
  13. Offline

    theguruofreason

    Got a problem here. Mobs always drop the minimum amount of money for some reason.
     
  14. Version 1.2 is out, be sure to redo the player drops part of your config file!

    Sooks: You can now set different drop amount for most death causes, including player kills.
    theguruofreason: Bug fixed in 1.2.
     
  15. Offline

    BioRage

    Drake, good work, I will definitely try this out now (Can replace EcoCreature.)

    Also, if you do "@<name" you will tag the user, and they get a notification! Easier imo)
     
  16. Offline

    zecheesy

    Help!
    Here is what it looks like on my console:


    Code:
    14:38:37 [SEVERE] Could not pass event ENTITY_DEATH to MoneyDrop
    java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getReg
    ionManager(Lorg/bukkit/WorldLcom/sk89q/worldguard/protection/managers/RegionMa
    nager;
    at me.drakespirit.plugins.moneydrop.MDEntityListener.mobDrop(MDEntityLis
    tener.java:193)
    at me.drakespirit.plugins.moneydrop.MDEntityListener.onEntityDeath(MDEnt
    ityListener.java:184)
    at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.j
    ava:656)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at net.minecraft.server.EntityLiving.q(EntityLiving.java:467)
    at net.minecraft.server.EntityLiving.die(EntityLiving.java:447)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:391)
    
    at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:43
    )
    at net.minecraft.server.Entity.R(Entity.java:261)
    at net.minecraft.server.EntityLiving.R(EntityLiving.java:113)
    at net.minecraft.server.Entity.m_(Entity.java:195)
    at net.minecraft.server.EntityLiving.m_(EntityLiving.java:217)
    at net.minecraft.server.EntityMonster.m_(EntityMonster.java:30)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:4
    8)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    MY CONFIG:

    Code:
    Player-Dropped-Amount:
        Mob-Attack: 5%
        Drowning: 5%
        Block-Explosion: 5%
        Fire: 5%
        Fall: 5%
        Block-Contact: 5%
        Other: 5%
        Suicide: 5%
        Suffocation: 5%
        Player-Attack: 7%
    Settings:
        Independent-Drops: false
        Spout:
            Pickup-Achievement-Notification: true
            Pickup-Sound: http://dl.dropbox.com/u/11950680/MoneyDrop/coin.wav
        Pickup-Chat-Notification: true
        Dropped-Material-ID: 266
        WorldGuard:
            Global-Mob-Drops: true
            Global-Player-Drops: true
            Mob-Drop-Disabled-Regions:
            - exampleregionname
            Player-Drop-Enabled-Regions:
            - exampleregionname
            Mob-Drop-Enabled-Regions:
            - exampleregionname1
            - exampleregionname2
            Player-Drop-Disabled-Regions:
            - exampleregionname
    Mobs:
        Creeper:
            Dropped-Maximum: 10
            Dropped-Frequency: 0.9
            Dropped-Minimum: 3
        Chicken:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Sheep:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        PigZombie:
            Dropped-Maximum: 8
            Dropped-Frequency: 0.9
            Dropped-Minimum: 0
        Slime:
            Dropped-Maximum: 20
            Dropped-Frequency: 1.0
            Dropped-Minimum: 5
        Tamed-Wolf:
            Dropped-Maximum: 5
            Dropped-Frequency: 0.7
            Dropped-Minimum: 3
        Spider:
            Dropped-Maximum: 9
            Dropped-Frequency: 0.9
            Dropped-Minimum: 5
        Wild-Wolf:
            Dropped-Maximum: 6
            Dropped-Frequency: 0.85
            Dropped-Minimum: 4
        Pig:
            Dropped-Maximum: 0.1
            Dropped-Frequency: 0.1
            Dropped-Minimum: 0
        Squid:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Zombie:
            Dropped-Maximum: 6
            Dropped-Frequency: 0.76
            Dropped-Minimum: 3
        Cow:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Ghast:
            Dropped-Maximum: 18
            Dropped-Frequency: 0.9
            Dropped-Minimum: 4
        Skeleton:
            Dropped-Maximum: 9
            Dropped-Frequency: 0.9
            Dropped-Minimum: 6
    
     
  17. @zecheesy : Are you running WorldGuard on your server? And if yes, what version?
    And thank you, @BioRage , I've been looking for how to do that for quite a while.
     
  18. Offline

    Worleyboy

    Is it possible to make all of the money drop as one item? So instead of $500 dropping on the ground as 500 items, it could drop as a single item that, when picked up, gives you $500.
     
  19. Offline

    BioRage

    Great!

    Quick question, how do you go and change the "$" amount? When you pick up it says you've picked up"x$"

    I'd like that to change to a currency name, over a sign, if possible.
     
  20. Offline

    zecheesy

    I have the latest WorldGuard (5.2, downloaded it today).
    I redownloaded the moneydrop plugin, but still this happens:



    Code:
    22:26:59 [SEVERE] Could not pass event ENTITY_DEATH to MoneyDrop
    java.lang.NullPointerException
            at me.drakespirit.plugins.moneydrop.Settings.getDeathCauseIndex(Settings
    .java:433)
            at me.drakespirit.plugins.moneydrop.MDEntityListener.onEntityDeath(MDEnt
    ityListener.java:73)
            at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.j
    ava:656)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
            at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:141)
            at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:391)
    
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:436)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:179)
    
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:728)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    and my config is this:


    Code:
    Player-Dropped-Amount:
        Mob-Attack: 5%
        Drowning: 5%
        Block-Explosion: 5%
        Fire: 5%
        Fall: 5%
        Block-Contact: 5%
        Other: 5%
        Suicide: 5%
        Suffocation: 5%
        Player-Attack: 10%
    Settings:
        Independent-Drops: false
        Spout:
            Pickup-Achievement-Notification: true
            Pickup-Sound: http://dl.dropbox.com/u/11950680/MoneyDrop/coin.wav
        Pickup-Chat-Notification: true
        Dropped-Material-ID: 266
        WorldGuard:
            Global-Mob-Drops: true
            Global-Player-Drops: true
            Mob-Drop-Disabled-Regions:
            - exampleregionname
            Player-Drop-Enabled-Regions:
            - exampleregionname
            Mob-Drop-Enabled-Regions:
            - exampleregionname1
            - exampleregionname2
            Player-Drop-Disabled-Regions:
            - exampleregionname
    Mobs:
        Creeper:
            Dropped-Maximum: 11
            Dropped-Frequency: 0.9
            Dropped-Minimum: 4
        Chicken:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Sheep:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        PigZombie:
            Dropped-Maximum: 5.5
            Dropped-Frequency: 0.78
            Dropped-Minimum: 0
        Slime:
            Dropped-Maximum: 21
            Dropped-Frequency: 1.0
            Dropped-Minimum: 13
        Tamed-Wolf:
            Dropped-Maximum: 4
            Dropped-Frequency: 0.9
            Dropped-Minimum: 2
        Spider:
            Dropped-Maximum: 8.7
            Dropped-Frequency: 0.84
            Dropped-Minimum: 4.6
        Wild-Wolf:
            Dropped-Maximum: 7
            Dropped-Frequency: 1.0
            Dropped-Minimum: 3
        Pig:
            Dropped-Maximum: 0.1
            Dropped-Frequency: 0.1
            Dropped-Minimum: 0
        Squid:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Zombie:
            Dropped-Maximum: 6
            Dropped-Frequency: 0.9
            Dropped-Minimum: 3
        Cow:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Ghast:
            Dropped-Maximum: 21
            Dropped-Frequency: 1.0
            Dropped-Minimum: 8
        Skeleton:
            Dropped-Maximum: 9
            Dropped-Frequency: 0.9
            Dropped-Minimum: 4
    
    Help :confused: :) ?
    I didnt set permissions (3 from Yeti) for this yet, but I will if needed to..
    is thre a conflicting plugin? if so, what is it?
     
  21. Offline

    Sooks

    @DrakeSpirit thank you, this a really great plugin! Keep ip the great work bud.
     
  22. Offline

    Zarius

    @DrakeSpirit

    Brilliant plugin - I've used your API to allow OtherDrops to add MONEY_DROP's as a option for the block/creature drop customisation.
     
  23. Offline

    indigomontoya

    yes! A use for ender pearls! Great plugin
     
  24. Offline

    T4L_Goose

    Will this ever support Decimals?
     
  25. Offline

    Wbjpen

    I have essentials and iConomy installed. When I kill a mob, the money goes to essentials money system (/balance)
    Any way to switch to iConomy's currency (/money)?
     
  26. Offline

    paully104

    Does this work on 1185?
     
  27. Offline

    T4L_Goose

    It does, but the new mobs won't drop anything yet.
     
  28. Offline

    Jakky89

    I have a problem that it drops gold bars which I can't collect (bukkit 1185). Please update!
     
  29. Offline

    T4L_Goose

    Is your inventory full?
     
  30. Version 1.3 is out, if you're updating, go over your config again, some stuff changed!

    @zecheesy, that error shouldn't occur anymore. If WorldGuard or Spout start acting up again, you can always disable them.
    @paully104, @Wbjpen: it does now!
    @Jakky89, it's updated for 1185, though I doubt that's the problem. It might have been caused by your inventory being full, but sometimes minecraft doesn't remove the items after they've been picked up (they can't be picked up again though). If that's the case, a server restart should fix it.
     
    paully104 likes this.

Share This Page