PayForDeath icon

PayForDeath -----

a death penalty plugin, let your players pay money to keep their inventory and levels on death



Important bug fix
Before using this new version, delete your old configuration file or modify it manually base on the following information (make sure you understand all of them!)

1, before this version, if you use " upper-limit-fomula: -1" in your configuration file, it would not turn off the check but always deduct $0 because there was a mistake in the code :)( why no one told me this bug before?). And now I have fixed it, use -1 as the value will correctly turn off the deduct limit check.

2, Since [ ] has special meaning in yml file, I replace all [ ] based placeholders with < > , for example, if you use 10 * [lv] + 10 as your deduct fomula before, now you need to use 10 * <lv> + 10.

After the 2.7 update, the new config guide will be:
Code (YAML):
default: [/B ] [/B ]
[B][B]  enable
: false [/B ]
[B ]   # formulas[/B]
[B ]   # supported operations: + - * / ()[/B]
[B ]   # placeholders you can use:[/B]
[B ]   # <lv> : the player's level[/B]
[B ]   # <bal> : the player's balance[/B]
[B ]   # invalid formula will always return 0.0[/B]
[B ]   # see the <exampleResourceWorld> below for an example[/B]
[B]  deduct-formula
: 0 [/B ]
[B ]   # -1 to switch off this check[/B]
[B]  upper-limit-formula
: -1 [/B ]
[B]  keep-inventory
: false [/B ]
[B]  keep-level
: false [/B ]
[B]  clear-instead-of-drop
: false [/B ]
[B]  notice-by-action-bar
: false [/B ]
[B]  notice-by-console
: false [/B ]
[B ]   # placeholders you can use in messages:[/B]
[B ]   # <player> : the player's name[/B]
[B ]   # <death-world> : the world the player death[/B]
[B ]   # <respawn-world> : the world the player respawn[/B]
[B ]   # <ransom> : the money deducted[/B]
[B ]   # <old-balance> : the player's balance before the deduction[/B]
[B ]   # <new-balance> : the player's balance after the deduction[/B]
[B]  kept-message
: §l§byou paid §e$<ransom>§b, inventory and levels kept。now u have §e$<new-balance> §9^_^ [/B ]
[B]  unkept-message
: §l§cyou didn't have §e$<ransom>§c, inventory and levels lost in §e<death-world> §9x_x [/B ]
[B]  exempt-message
: §l§eyou have the privilege to keep items and levels for free in §e<death-world> §9^_^ [/B ]
[B]  ignore-message
: §l§7PFD's features are disabled on you [/B ]
[B ] [/B ]
[B ] # write your world-specific config below[/B]
[B ] # just write the settings you want to override in this world[/B]
[B ] # missing settings will read from default[/B]
[B ]exampleResourceWorld: [/B ]
[B]  enable
: true [/B ]
[B]  deduct-formula
: 10 + 10 * <lv> [/B ]
[B]  upper-limit-formula
: 10 + 0.5 * <bal> [/B ]
[B]  keep-inventory
: true [/B ]
[B]  keep-level
: true [/B ]
[B]  notice-by-action-bar
: true [/B ]
[B ] [/B ]
[B ]exampleMainWorld: [/B ]
[B]  enable
: true [/B ]
[B]  keep-inventory
: true [/B ]
[B]  keep-level
: true [/B ]
[B]  notice-by-action-bar
: true [/B ]
[B]  kept-message
: §l§bFree to keep all things in main world §9^_^ [/B ]
[B ] [/B ]
[B ]exampleDangerWorld: [/B ]
[B]  enable
: true [/B ]
[B]  notice-by-action-bar
: true [/B ]
[B]  kept-message
: §l§cpay for death is not allowed in this world §9c_c


And there are also some small fixes, and I replace the command /pfd reload with /pfd-reload
----------, Aug 1, 2022
Resource Information
Author:
----------
Total Downloads: 1,038
First Release: Jul 16, 2021
Last Update: Aug 1, 2022
Category: ---------------
All-Time Rating:
8 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings