Lose money on death

Discussion in 'Archived: Plugin Requests' started by newboyhun, Feb 23, 2012.

  1. Offline

    newboyhun

    Hi all!
    I want a plugin for Essentials economy (have both vault and register).
    When a player die,it will lose x money.
    I want to be configurable that how much money will be substracted.

    Tried Lose Money but not work.

    Using Bukkit 1.1.R4

    EDIT: Using PermissionEx if it's matter.
     
  2. Offline

    Zarius

    OtherDrops should be able to do this:

    Code:
      PLAYER:
        - [email protected]/20   # should take $20 from player when they die
     
    # hmm.. problem: will also give to another player if it's a player that killed the player (but it's ok if you have pvp off)
    
     
  3. Offline

    newboyhun

    Thanks =)
    Really cool plugin.
    But i can't get this code working:
    It's drop glass on death but no money =(
    Code:
    otherdrops:
        PLAYER:
            - drop: GLASS
             
            - drop: MONEY
              quantity: 3-15
              message: You get %q money.
     
  4. Offline

    Zarius

    How are you testing it? You wont get any money that way when you die - it will give money to the attacker (if another player killed you).

    Using [email protected] only works because it was designed to take money from the victim (the player dying) to the attacker (player the killed the victim). If there was no attacker it will just take money from the victim on death (and give to no-one).

    If you want to drop "physical" money you need to use the MoneyDrop plugin. Actually, the MoneyDrop plugin will also allow you to configure money loss on death too :) (it also supports Essentials)
     
  5. Offline

    newboyhun

    I'm just tested it on my test server,with /suicide and falling out of the world and by creeper.
    It's drop Glass but it's don't give money,tried drop: MONEY and drop:[email protected]
    I'm using MoneyDrop but i don't want to drop the money,just substract from the balance.
    That's i don't use MoneyDrop's death configure.
     
  6. Offline

    Zarius

    I just tested:

    Code:
      PLAYER:
            - drop: GLASS
             
            - drop: [email protected]
              quantity: 3-15
              message: You lose %q money.
    
    And I lost money. I didn't get the message though, I'll look into that.
     
  7. Offline

    newboyhun

    Hmmm,i'm ussing Essentials Eco.
    I don't lost money =(
    Here is my otherdrops-drops.yml file: http://pasteit.com/16941

    Thanks.
     
  8. Offline

    dillyg10

    Err, dunno if your still interested, but I can do this really easy..
     
  9. Offline

    newboyhun

    I just want a really simple plugin that substract from the player x money using Essentials Eco.
    I really want it because the players just go trough a Catacomb by running and die,die,die,die.
    They get the loot,we reset it and they run trough again =(
    So with this i could stop this.
    EDIT:Oh and it would be good to the money don't go under 0.
     
  10. Offline

    K_Cin

    Most economy plugins only allow OPs to go beneath 0.
     
  11. Offline

    newboyhun

    I see,so somone can make it please?
     
  12. Offline

    Giinger

    I can try to make this for you. No promises though ;)
     
  13. Offline

    newboyhun

    Nice,Thanks =)
     
  14. Offline

    Giinger

    [quote uid=90596610 name="newboyhun" post=984525]Nice,Thanks =)[/quote]
    Name: DeathTaker
    Version: 1.0
    Author: Giinger

    This plugin basically takes the desired amount of money away from a player(defined in the config that it generates on the first run) when they die and prompts them with a nice message telling them that they lost x amount of money. If they don't have x amount of money, it will send them another message telling them so.

    EDIT: Give the users that you want to lose money this permission node: dt.losemoney

    Download Link:
    <Edit by Moderator: Redacted mediafire url>

    Tell me if you want me to add anything else.

    BTW, you need vault with that. Forgot to mention that.

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

    NullCity

    Dang I was about to make it for you.
    XD
     
  16. Offline

    newboyhun

    Thanks a lot !

    Giinger,could you add to the config to change the messages?
    Because i'm a Hungarian so i have a Hungarian server.
    I want to translate it.
    Thanks !!

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

    Giinger

    Sure, i'm not home right now, but I could do that for you when I get home.
     
  18. Offline

    newboyhun

    Nice thanks.
     
  19. Offline

    Giinger

    Here you go, this includes an option to change the entire message, just make sure you change the message amount to the same amount as the value of amount, it doesn't do it automatically.

    Download:
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 11, 2016
  20. Offline

    newboyhun

    Oh niicee !!
    Thanks a lot!
    Umm,i think this a noob question,but this will work with R5?
    I read something about plugins need to be updated to R5.
     
  21. Offline

    Giinger

    This will work with R5.
     
  22. Offline

    newboyhun

    Thanks!
     

Share This Page