Sueta

PayForDeath

2.7

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

·Plugin
  1. 2.7latestImportant bug fixAug 1, 2022
    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
    74 downloads
  2. 2.61.19 support and small fixJul 20, 2022
    update to 1.19 and some small fixes. Please note that from version 2.6, PayForDeath will no longer support some servers under Minecraft version 1.18.2, it is because I will only provide the jar compiled by java 17 and it can only work on servers run on java 17 or above. If you really need a PayForDeath that support older game versions, use PayForDeath 2.5 or contact me to see if I can help.
    46 downloads
  3. 2.5greate improvement on config file!Jul 23, 2021
    - Now you only need to write two formulas to define the money deduction mode - Now you can use several placeholders in your messages See the new [usage] part for detials Remember to delete the old config first!
    153 downloads
  4. 2.0Exempt (free to keep all) or ignore (disable this plugin on) a player base on permissionsJul 21, 2021
    - add two permissions so you can exempt or ignore players - rewrite some code - better introduction, see the [usages] section
    45 downloads
  5. 1.7Fixed the api version problemJul 18, 2021
    If you got an error contained text "..api version 1.17", now the problem fixed. sorry I forgot adjusting it on version 1.6
    38 downloads
  6. 1.6Jul 16, 2021
    61 downloads

Similar projects

Plugin →