Monetary Death Penalty

Logo

Fear death as MonetaryDeathPenalty will remove currency from a player's account when they die. This is a great way to help balance a server's economy.

Description

This is the MonetaryDeathPenalty plugin you can add to your server to monetary penalise players that die. It is currently v2.01 and was designed for v1.7.2 and v1.6.4. It requires Vault. MonetaryDeathPenalty also supports most permissions and most currency plugins. You can add regions to the worldguardBlacklist in the config.yml to disable any money loss within those regions.

I will continue to support this and add many more features. If you have any suggestions please let me know in the comments or through a pm.

Installation and configuration

Place the MonetaryDeathPenalty.jar into your plugins directory and then run the server.

Commands

  • /mdp - Current version of MonetaryDeathPenalty running.
  • /mdp reload - Reloads the config for MonetaryDeathPenalty.
  • /mdp set prefix <string> - Set the prefix for MonetaryDeathPenalty.
  • /mdp set pvppay <integer> - Set the pvppay for MonetaryDeathPenalty.
  • /mdp set usepercentage <boolean> - Set the usepercentage for MonetaryDeathPenalty.
  • /mdp set flatpercentage <integer> - Set the flatpercentage MonetaryDeathPenalty.
  • /mdp set flatamount <integer> - Set the flatamount MonetaryDeathPenalty.
  • /mdp set vipflatpercentage <integer> - Set the vipflatpercentage MonetaryDeathPenalty.
  • /mdp set vipflatamount <integer> - Set the vipflatamount MonetaryDeathPenalty.
  • /mdp set minamountforpenalty <integer> - Set the minamountforpenalty MonetaryDeathPenalty.
  • /mdp set flatamountbelowminamount <integer> - Set the flatamountbelowminamount MonetaryDeathPenalty.
  • /mdp set maxpercentagecap <integer> - Set the maxpercentagecap MonetaryDeathPenalty.
  • /mdp set currencysymbol <symbolr> - Set the currencysymbol MonetaryDeathPenalty.

Config

Click here for help with the config.yml

  • checkForUpdates - MonetaryDeathPenalty will check for updates. Set to false to disable this./
  • prefix - Display a prefix before the MonetaryDeathPenalty message. To disable type prefix: ''
  • pvpPay: 150 - Allow players who kill another player to earn a flat amount of currency (pvpCost must be set to true). To disable type pvpPay: 0.
  • usePercentage: true - If true will use the flatPercentage to calculate the amount that is lost upon death.
  • flatPercentage: 10 - Will remove this percentage of the players current money upon death.
  • flatAmount: 500 - Will remove this amount of money from the player upon death. Set usePercentage to false if you wish to use this.
  • vipFlatPercentage: 5 - Will remove the specified percentage of the total players money upon death.
  • vipFlatAmount: 250 - Will remove a set value rather than a percentage of the players money. Set usePercentage to false if you wish to use this.
  • minAmountForPenalty: 1000 - If a player has less than or equal to this amount no currency will be deducted when they die.
  • flatAmountBelowMinAmount: 100 - If a player has less than or equal to minAmountForPenalty then the value from flatAmountBelowMinAmount will be deducted from a player when they die. To disable type flatAmountBelowMinAmount: 0
  • maxPercentageCap: 5000 - Will cap the max amount of currency that can be removed from the usePercentage.
  • currencySymbol: $ - Will output currencySymbolX in the money lost message upon death.
  • customMessage: '&6You have died at {0} &6and due to dying you have lost &a{1}&9{2}&6.' - Will show a custom death message upon death. Click here for help with the config.yml.
  • customMessageForKiller: '&6You have earned &a{1}&9{4} &6for killing &d{3}&6.' - Will show a custom message when the player kills another player. Click here for help with the config.yml.
  • worlds: - world - world_nether - Worlds listed here will prevent players losing money through MonetaryDeathPenalty.
  • worldGuardBlackList: - region_name_here - Regions listed here will cause MonetaryDeathPenalty to have no affect on the players currency.

Permissions

  • mdp.ignore
    description: Player cannot be penalised by MonetaryDeathPenalty upon death. Give Ops - -mdp.ignore permission node to allow MonetaryDeathPenalty to affect their cash. They will still need the - -mdp.vip permission node if you want Ops to be fully affected by MonetaryDeathPenalty.
  • mdp.vip
    description: Player/group is marked as Vip and penalised using the value from vipFlatPercentage or vipFlatAmount. Give Ops - -mdp.vip permission node to allow MonetaryDeathPenalty to fully affect their cash.
  • mdp.admin
    description: Player/group is granted admin permissions
    default: op
  • mdp.reload
    description: Reload the config for MonetaryDeathPenalty.
    default: op

Changelog

Click here for the full Changelog

Metrics

As of v2.0 this plugin sends statistics about the usage to the server http://mcstats.org/. You can disable it by setting "opt-out" to true in \plugins\PluginMetrics\config.yml.

stats

Auto-checking for updates

As of v2.0 this plugin will check for updates using Curse's ServerMods API. It always checks the current version with the version on BukkitDev and will notify ops or any players/groups with the mdp.admin permission that there is an update available. It will never automatically download an update without the user typing /mdp update. All of the updates are downloaded from BukkitDev. These checks can be disabled in the config.yml by setting checkForUpdates to false.

Donate

As people have requested a donation button to help support the development of MonetaryDeathPenalty I've decided to add one. Thanks to the current and future donations I really appreciate it.

https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Kino876 Kino876 Jul 19, 2014 at 17:52 UTC - 1 like

    It is working on 1.7.9 ?

  • Avatar of xajar xajar Apr 20, 2014 at 01:45 UTC - 0 likes

    What would be a really cool feature (config on/off) is that if they do not have enough money to pay for death they are banned from the server. Someone in-game can transfer money to them to allow them to come back on, or they can purchase money from the website or whatever.

  • Avatar of The_Wizard The_Wizard Mar 20, 2014 at 07:46 UTC - 0 likes

    Can you add a command to return to the place you died?
    Also using economy.

    Thanks

  • Avatar of sacha220899 sacha220899 Feb 03, 2014 at 01:14 UTC - 0 likes

    Please make it that we can set the flatAmountBelowMinAmount: -1 So the Killer becomes always $ when he kill another, also when the victim had $0 And it does't work with the VIPAmount. I have PremissionsEX and also the VIPs become just $1, like the normal players.

    Last edited Feb 03, 2014 by sacha220899
  • Avatar of samueli5750 samueli5750 Jan 31, 2014 at 06:56 UTC - 0 likes

    Bug with 1.7.2 . If your money is negative then you wont be deducted money and dead

  • Avatar of KJ_Shipp KJ_Shipp Jan 28, 2014 at 22:24 UTC - 0 likes

    @Supavitax: Go

    Is it possible to get an ETA for the newer version? Server's open but still lacking this plugin to be complete.

    CEO, SniperCraft.net
    "Can you dig it?"
    http://www.snipercraft.net/SnipercraftBanner.jpg

  • Avatar of Six_shooter87 Six_shooter87 Jan 28, 2014 at 11:35 UTC - 0 likes

    It doesn't seem to work for anyone, using bukkit 1.7.2 ops and non-ops don't get money deducted....

  • Avatar of KJ_Shipp KJ_Shipp Jan 19, 2014 at 20:41 UTC - 0 likes

    @Supavitax: Go

    Thank you for the fast response. No rush sir, still bug-fixing/detecting my server before I open it to the public. Thank you for being willing to accommodate my request. I'll keep an eye on this page unless you feel like pm'ing me when you've gotten around to it. Again, thank you.

  • Avatar of Supavitax Supavitax Jan 19, 2014 at 20:34 UTC - 0 likes

    @KJ_Shipp: Go

    I'll update it and add it as a soft depend. Currently busy on one of my other plugins so it may be a few days.

  • Avatar of KJ_Shipp KJ_Shipp Jan 19, 2014 at 20:28 UTC - 0 likes

    It is stated above that WorldGuard is required for this plugin to work. Is there a way around that or is it possibly a soft dependency? I would love to use this on my server but do not desire to add WG just for this plugin. Thanks for your time.

Facts

Date created
Jun 23, 2013
Categories
Last update
Mar 05, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
Monetary Death Penalty
Downloads
3,981
Recent files

Authors