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. Sorry guys, it's pretty hectic on my side of the screen. I'll try to get 1.3.3 out this weekend.
     
  3. Offline

    oceanor

    would be interesting if you can add a config to drop only if a player slain a mob
    (no mob farms/skeleton vs mobs duel/creeper's explosion killing other mobs and let them dropping)

    btw congrats, really nice plugin
     
  4. Offline

    GECLAN Erik

    Was just about to post about the same, the plugin could realy use anti mob farmer settings.
     
  5. Offline

    Speyedur

    May someone please help me?
    I completely love this plugin and I think it would be a great help but I have only one problem...
    When the mobs drop money nobody can pick them up. :( I'm using Iconomy 6 and I have no idea why this happens, but this is the contents in my config.yml i'm using:
    Player-Dropped-Amount:
    Mob-Attack: 3%
    Drowning: 3%
    Block-Explosion: 3%
    Fire: 3%
    Fall: 0%
    Block-Contact: 0%
    Other: 0%
    Suicide: 5%
    Suffocation: 1%
    Player-Attack: 7%
    Settings:
    Independent-Drops: false
    Spout:
    Pickup-Achievement-Notification: false
    Pickup-Sound:
    Enabled: false
    Pickup-Achievement-Notification-Enabled: false
    Pickup-Achievement-Notification-Title:
    Pickup-Achievement-Notification-Message:
    Pickup-Chat-Notification: true
    Dropped-Material-ID: 361
    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
    Enabled: true
    Mobspawner-Drops-Allowed: true
    Dropped-Value: o.3
    Preferred-Economy: ''
    Pickup-Chat-Notification-Enabled: true
    Pickup-Chat-Notification-Message: Picked up <money>$
    Mobs:
    Creeper:
    Dropped-Maximum: 20
    Dropped-Frequency: 1.0
    Dropped-Minimum: 5
    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.1
    Dropped-Minimum: 3
    Spider:
    Dropped-Maximum: 10
    Dropped-Frequency: 1
    Dropped-Minimum: 3
    Wild-Wolf:
    Dropped-Maximum: 10
    Dropped-Frequency: 1.0
    Dropped-Minimum: 4
    Pig:
    Dropped-Maximum: 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: 18
    Dropped-Frequency: 1.0
    Dropped-Minimum: 4
    Skeleton:
    Dropped-Maximum: 8
    Dropped-Frequency: 0.9
    Dropped-Minimum: 6
    Cave-Spider:
    Dropped-Maximum: 20
    Dropped-Frequency: 0.5
    Dropped-Minimum: 5
    Enderman:
    Dropped-Maximum: 30
    Dropped-Frequency: 0.3
    Dropped-Minimum: 1
    Giant:
    Dropped-Maximum: 0
    Dropped-Frequency: 0.0
    Dropped-Minimum: 0
    Human:
    Dropped-Maximum: 0
    Dropped-Frequency: 0.0
    Dropped-Minimum: 0
    Silverfish:
    Dropped-Maximum: 1
    Dropped-Frequency: 1.0
    Dropped-Minimum: 1
     
  6. Offline

    seilacomo101

    ok
    i kill mobs the money drop in golden ingot but can't pick up
    i read all pages
    and nothing help me =x
    i like this mod but this small issue make a great hole in my mind
     
  7. 1.4 is out. You need Register as a seperate plugin now, it's no longer included with MoneyDrop.
     
    oceanor likes this.
  8. Offline

    oceanor

    yahooo! thanks a lot!
     
  9. Offline

    ThePlasticBling

    Hi, this is not working for me.

    I always get this error:

    Code:
    [INFO] Starting Minecraft server on 192.168.1.101:25565
    2011-10-11 17:07:41 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-10-11 17:07:41 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-10-11 17:07:41 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-10-11 17:07:41 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-10-11 17:07:42 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)
    2011-10-11 17:07:42 [SEVERE] Could not load 'plugins\MoneyDrop.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 101, column 53:
         ... mum: 20        Dropped-Frequency: 1.0
                                             ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    2011-10-11 17:07:42 [INFO] [Register] Preferred method [null] not found, using first found.
    2011-10-11 17:07:42 [INFO] [Register] version 1.5 is enabled.
    2011-10-11 17:07:42 [INFO] Preparing level "world"
    2011-10-11 17:07:42 [INFO] Default game type: 0
    2011-10-11 17:07:42 [INFO] Preparing start region for level 0 (Seed: 1883283714155614029)
    2011-10-11 17:07:43 [INFO] Preparing start region for level 1 (Seed: -3329720945189263696)
    2011-10-11 17:07:44 [INFO] Preparing spawn area: 0%
    2011-10-11 17:07:45 [INFO] [Alerter] ALERTER v1.35 is enabled! created by: Patrick_pk91
    2011-10-11 17:07:45 [INFO] [Alerter] Permission system not detected, defaulting to OP + default permissions
    2011-10-11 17:07:45 [INFO] [Alerter] Database area ''world''' FOUND and loaded!!
    2011-10-11 17:07:45 [INFO] [Alerter]: Searching upgrade...(maybe during few second)
    2011-10-11 17:07:45 [INFO] [Alerter]: Your version of Alerter is the lastest!
    2011-10-11 17:07:45 [INFO] [Alerter]: Current language: English
    2011-10-11 17:07:45 [INFO] [iConomy - Celty] Enabled (27 ms)
    2011-10-11 17:07:45 [INFO] [Register] Payment method found (iConomy version: 6)
    2011-10-11 17:07:45 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-10-11 17:07:45 [INFO] Done (0.362s)! For help, type "help" or "?"
    2011-10-11 17:07:45 [INFO] New max size: 484
    2011-10-11 17:07:45 [INFO] New max size: 784
    
    I think it has something to do with:

    Code:
    2011-10-11 17:07:42 [SEVERE] Could not load 'plugins\MoneyDrop.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 101, column 53:
         ... mum: 20        Dropped-Frequency: 1.0
                                             ^
    Here's my config:

    Code:
    Player-Dropped-Amount:
        Mob-Attack: '0'
        Drowning: '0'
        Block-Explosion: '0'
        Fire: '0'
        Fall: '0'
        Block-Contact: '0'
        Other: '0'
        Suicide: '0'
        Suffocation: '0'
        Player-Attack: '0'
    Settings:
        Independent-Drops: false
        Spout:
            Pickup-Achievement-Notification-Message: Picked up <money>$
            Enabled: true
            Pickup-Achievement-Notification-Title: $$$
            Pickup-Achievement-Notification-Enabled: true
            Pickup-Sound: ''
        Mobspawner-Drops-Allowed: true
        Pickup-Chat-Notification-Message: Picked up <money>$
        Pickup-Chat-Notification-Enabled: true
        Mobs-Only-Drop-On-Kill: true
        Dropped-Material-ID: 266
        WorldGuard:
            Global-Mob-Drops: true
            Enabled: 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
        Dropped-Value: 1.0
    Mobs:
        Creeper:
            Dropped-Maximum: 35
            Dropped-Frequency: 1.0
            Dropped-Minimum: 25
        Chicken:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Human:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Sheep:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Giant:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        PigZombie:
            Dropped-Maximum: 40
            Dropped-Frequency: 1.0
            Dropped-Minimum: 30
        Slime:
            Dropped-Maximum: 70
            Dropped-Frequency: 1.0
            Dropped-Minimum: 40
        Tamed-Wolf:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Silverfish:
            Dropped-Maximum: 175
            Dropped-Frequency: 1.0
            Dropped-Minimum: 150
        Wild-Wolf:
            Dropped-Maximum: 20
            Dropped-Frequency: 1.0
            Dropped-Minimum: 10
        Spider:
            Dropped-Maximum: 20
            Dropped-Frequency: 1.0
            Dropped-Minimum: 10
        Enderman:
            Dropped-Maximum: 45
            Dropped-Frequency: 1.0
            Dropped-Minimum: 35
        Pig:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Squid:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Cave-Spider:
            Dropped-Maximum: 100
            Dropped-Frequency: 1.0
            Dropped-Minimum: 70
        Zombie:
            Dropped-Maximum: 20        Dropped-Frequency: 1.0
            Dropped-Minimum: 10
        Cow:
            Dropped-Maximum: 0
            Dropped-Frequency: 0.0
            Dropped-Minimum: 0
        Ghast:
            Dropped-Maximum: 150
            Dropped-Frequency: 1.0
            Dropped-Minimum: 125
        Skeleton:
            Dropped-Maximum: 45
            Dropped-Frequency: 1.0
            Dropped-Minimum: 30
    
    Thanks!!!
     
  10. @ThePlasticBling
    Code:
        Zombie:
            Dropped-Maximum: 20        Dropped-Frequency: 1.0
            Dropped-Minimum: 10
    should be
    Code:
        Zombie:
            Dropped-Maximum: 20
            Dropped-Frequency: 1.0
            Dropped-Minimum: 10
     
  11. Offline

    ShadowKitty

    I have one suggestion, that would make this plugin perfect in my mind. Add the option to make money drops look like experience orbs =P since they are currently pretty pointless (although they'll have some meaning in MC 1.9)

    Other than that, the plugin is awesome and working perfectly on the CB 1240 server I'm currently setting up. Great job.
     
  12. Offline

    ThePlasticBling


    Thanks so much!!!
     
  13. Offline

    spydercanopus

    Any way to make blocks drop some cash?
     
  14. Offline

    Zero_Burn

    I would like them to look like little green "$" so they aren't confused with any items that may be dropped by the mobs, this could be customized though the .cfg file.
     
  15. Offline

    Mike Geitz

    Register isn't making a file to edit and there appear to be no installation instructions on the register page. Players are picking up and keeping the item ID for money and not getting money (they've never had so much cooked fish). Where on earth can I set the preferred economy?

    EDIT: Is there anywhere I can download 1.3.2 again? Register is killing me
     
  16. Offline

    rudedoggx

    I'm really having trouble with Register too, certain plugins are preventing register from starting, it's a real mess.
     
  17. Offline

    RaesWolf

    There is a bug!!

    For the configuration file theres a part that allows you to state that if another player kills you how much you would lose.

    We set this to 25 so in the pvp zone ppl can kill each other and get $25 off the person they kill. Well one person found that if you go into the Negative ( such as your at 0 when u die and lose $25 that it placed u at -$25.)

    Well each time you killed that one person who was in the Negative for money it would Double what they dropped for money. We noticed this when someone ended up with 29K money in 2 hours :S

    Pls fix cause I love this plugin so far!
     
  18. Please update for last CB and Spout :'(
     
  19. Offline

    rikari

    Hello. I finally have this plugin working with iCo 6 (had small database issues) and it runs nicely. Kudos to you!!! :)

    I was wondering if there was a way that I can break it down in iConomy. Like instead of the dropped amount being 1 dollar, I would like it to drop 1 dollar and 25 cents. I tried this in my config but it won't work.
     
  20. Offline

    Patdue

    I have the same problem.. could someone please make a tutorial? Mobs just drop gold bars now and they are picked up as gold bars :S
     
  21. Offline

    Vixolus

    Is it just me or do Creepers not drop anything?

    nvm it was me
     
  22. Offline

    Tauryuu

    PermissionsBukkit support? I would love to make this only available to certain worlds only.
     
  23. Offline

    Vixolus

    Humans don't drop money.
     
  24. Offline

    WhiteDragon

    so any news on getting this thing to work? Register seems to not be working.
     
    Monk3y likes this.
  25. Offline

    Monk3y

    so it drops gold bars but goes into my invitory and wont convert to vmoney im using iconomy 6 any ideas?

    Code:
    2011-10-27 21:36:13 [SEVERE] Could not pass event PLAYER_PICKUP_ITEM to MoneyDrop
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.register.payment.Methods.hasMethod()Z
        at me.drakespirit.plugins.moneydrop.MDPlayerListener.onPlayerPickupItem(MDPlayerListener.java:25)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:393)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        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:215)
        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:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  26. Offline

    Lexington

    I would like to make players drop 25% of their cash when killed by another player , they lose 25% , but attacker picks only small amount of the cash instead of full 25%. How can i setup this correctly so the attacker can gain full amount dropped by victim ?

    [SOLVED]
     
  27. Offline

    Exanimo

    Suggestion
    Could you make it so that Money drops only when a player has the killing blow. (or does at least 50% damage to it)
    This will prevent players from grinding mobs using trap or let NPCs do the work for them.

    It seems that experience orbs wont drop when a creature dies due to drowning, perhaps some of the code can be based on that?
    My guards (Citizens plugin) that kill mobs dó result in experience and money drops, i'm hoping there is some way to determine if its an NPC or a Player that makes the kill but im no coder so i can only hope.

    The above mentioned percentage might be preferable changeable in the config file. (if at all possible)
    If a percentage won't work, maybe checking for at least a single blow/arrow from a player is?

    Suggestion 2
    Instead of "Dropped-Material-ID: 266" allow to enter an URL to an image.
    I want to link to some goldcoins instead of goldbars.
     
  28. Today I woke up with an extra dose of awesome, so I decided to finish MoneyDrop 1.5, find a cure for cancer, convince Valve to unveil the Half-Life 2 Episode 3 release date, end world hunger and bring world peace today.

    Unfortunatly, I also woke up with an extra dose of lazy, so I only got MoneyDrop 1.5 done.
    Ah well, maybe next time.

    @RaesWolf fixed in 1.5, thanks for reporting!
    @rikari set the Dropped-Value to 0.25 and the dropped amount to 5. 5 x 0.25 = 1.25.
    @Tauryuu support added for multiple worlds in 1.5!

    To everyone suggesting for monsters to only drop money if they get killed by a player, that's the Mobs-Only-Drop-On-Kill setting.
    Custom materials will be for another update and will require spout for both the server and the player.
     
  29. Offline

    RaesWolf

    sweet ive tested this out and its already running way better! and I love how i can have a configurating for each world! Much easier to handle :) ty!!!
     
  30. Offline

    kadin

    Alright, I'm new to this so I'm not sure if I'm just doing something wrong or if there's a glitch.

    I set Dropped-Value to 1 then went to the mob drops and set it like this.

    Chicken:
    Dropped-Minimum: 1
    Dropped-Maximum: 1
    Dropped-Frequency: 1.0

    I meant for chickens to drop $1 every time. But every time I kill them they are dropping a random amount between $5-10 (Dropping 5-10 of the gold bar things... Each worth $1.) The same problem exists with all mobs, I'm just using the chicken as an example. Can someone explain why it is doing this? Or what I did wrong here? (I have the latest version of everything. And I did restart both the server and client after changing the values.)
     
  31. @kadin
    That's odd, it seems to work fine when I test it. There doesn't seem to be anything wrong with the config either.
    Could you post your entire .yml files? (please put them in spoilers or link a pastebin)
    I'll also need to know which world you were testing this on.
     

Share This Page