Next release v1.0.2 on Nov. 20th - Dec. 5th.
/!\ Code optimization in progress... /!\ (0%)
Happy Thanksgiving!
(Nov. 28 is my birthday. I will be 22 years old.)
This resource needs a logo! Please submit your designs in a PM to LegendDoubleB.
Motivate me to keep learning by donating today!
Donate via PayPal
Preface
/!\ Code optimization in progress... /!\ (0%)
Happy Thanksgiving!
(Nov. 28 is my birthday. I will be 22 years old.)
This resource needs a logo! Please submit your designs in a PM to LegendDoubleB.
Motivate me to keep learning by donating today!
Donate via PayPal
I started this project to learn java with the Spigot API since I love Minecraft so much. There may be bugs when using this resource. I will attempt to fix any problems so I can keep learning how to code more effectively. Use this plugin at your own risk. Thank you.
Introduction
Is your server economy over-inflated and players frequently die or kill themselves without any consequences? Introducing DeathTax; the plugin that will help with economy inflation by taxing players whenever they die. This plugin can also give a victim's killer money from the loss of their victim. On the contrary, you can also levy a tax from the killer's earnings and/or take money from a killer for killing another player as a penalty.
How it Works
There are two different forms of death:
Environmental Death - A player dies without assistance from another player or dies from self-inflicted injury. (PvE)
The plugin will detect how a player dies (using PlayerDeathEvent) and based on the settings in the configuration, will handle the player's money accordingly.
Below are some scenarios with explanations:
Environmental Death - A player dies without assistance from another player or dies from self-inflicted injury. (PvE)
Spoiler: PVE Examples
Combat Death - A player dies because of another player's actions. (PvP)
- Hostile Mobs, drowning, suffocation, self-harm, lava, fire, lightning, fall damage, redstone traps, void damage, commands, etc...
Spoiler: PVP Examples
- TNT, potions/throwables, any weapon, and inflicting damage indirectly (fall damage, lava, lingering potions, Thorn enchantment, etc...).
The plugin will detect how a player dies (using PlayerDeathEvent) and based on the settings in the configuration, will handle the player's money accordingly.
Your players keep dying, thus losing money and making the server more competitive while also influencing player combat.
*Ideal for: Role-Playing and Economy Based Servers*
*Ideal for: Role-Playing and Economy Based Servers*
Below are some scenarios with explanations:
Spoiler: Example One
A player falls off of a cliff and dies. This is an environmental death. They had $350. They lost $35 plus an additional 12%. They will respawn with $273. They lost a total of $77.
The configuration would look like this:
The configuration would look like this:
Spoiler: Configuration Example 1
# Section for death-by-environment taxation. (PvE)
death_by_pve:
# The amount of money lost on death.
base_fee: 35
# Percentage of money lost on death.
percentage: 12
This is what the debug would show in the console:
Code (Text):
# Section for death-by-environment taxation. (PvE)
death_by_pve:
# The amount of money lost on death.
base_fee: 35
# Percentage of money lost on death.
percentage: 12
Spoiler: Example One Debug
Spoiler: Example Two
Two players are fighting each other. Player One is at the edge of a ravine. Player Two knocks Player One into the ravine by hitting them. Player One then dies from fall damage. This is a combat death. Why? Because Player Two caused Player One to die from fall damage.
Player One had $176.25. They lost $15 plus an additional 7%, which equals $27.32. They respawn with $148.93.
Player Two is awarded $10 plus an additional 25% from the victim's loss of $27.32, giving Player Two $16.83. Then Player two is taxed 75% from their earnings of $16.83, which equals $12.62. Player Two is left with $4.21 as a profit.
The configuration would look like this:
Player One had $176.25. They lost $15 plus an additional 7%, which equals $27.32. They respawn with $148.93.
Player Two is awarded $10 plus an additional 25% from the victim's loss of $27.32, giving Player Two $16.83. Then Player two is taxed 75% from their earnings of $16.83, which equals $12.62. Player Two is left with $4.21 as a profit.
The configuration would look like this:
Spoiler: Configuration Example Two
Code (Text):
# Section for death-by-player taxation. (PvP)
death_by_pvp:
# The amount of money the victim loses.
base_fee: 15
# Percentage of money the victim loses.
percentage: 7
# The amount of money given to killer from lost money of victim.
killer_gain_base_allowance: 10
# Percentage of money given to killer from lost money of victim.
killer_gain_percentage: 25
# The amount of money that is taxed from the killer's earnings.
killer_tax_base_fee: 0
# Percentage of money that is taxed from the killer's earnings.
killer_tax_percentage: 75
death_by_pvp:
# The amount of money the victim loses.
base_fee: 15
# Percentage of money the victim loses.
percentage: 7
# The amount of money given to killer from lost money of victim.
killer_gain_base_allowance: 10
# Percentage of money given to killer from lost money of victim.
killer_gain_percentage: 25
# The amount of money that is taxed from the killer's earnings.
killer_tax_base_fee: 0
# Percentage of money that is taxed from the killer's earnings.
killer_tax_percentage: 75
Overview
(In progress)
Debug
There is a debug feature (since v1.0.1) that will help users to understand how the plugin works by showing messages in the console whenever plugin related events occur. To use this, you must have "debug" set to true in config.yml.
Here are some example photos with explanations:
Spoiler: Plugin enabled!
When the plugin is successfully enabled. It will show you three main things:
Spoiler: Plugin enabled!
1.) The Vault plugin version that the server is using.
2.) The economy plugin that Vault is using.
3.) How much time it took the plugin to be enabled. (in milliseconds or seconds).
2.) The economy plugin that Vault is using.
3.) How much time it took the plugin to be enabled. (in milliseconds or seconds).
Spoiler: No Vault detected!
When there is no Vault plugin enabled, the plugin will disable itself, regardless of the economy plugin. This message also ignores the debug setting.
Spoiler: No economy plugin detected!
When Vault does not detect an economy plugin, the plugin will disable itself. This message ignores the debug setting.
Spoiler: Old file version detected!
When the file version is changed, the plugin will attempt to make a backup file. This message ignores the debug setting.
If the backup file with the same name already exists, this will appear:
If the backup file with the same name already exists, this will appear:
Features
* Tax players for dying by means of PvP or PvE.
* Give a configured amount of the victim's money to their killer.
* Tax a killer a portion of their earnings.
* Penalize a killer for killing another player.
* Configure taxes to have a range limit.
* Disable worlds you do not want players to be taxed in.
* Ability to customize messages and add additional languages.
* Reload the configuration files from in-game.
Dependencies
Installation
1.) Download DeathTax by clicking on the "Download Now" button.
2.) Download Vault.
3.) Download an economy plugin that is compatible with Vault.(A list of plugins can be found on the Vault plugin page)
4.) Place all three files into your server's plugins folder.
5.) Start your server and configure to your liking!
Reminder: After step five, you can type "/deathtax reload" either in-game or from the console to reload the changes you made. Also, if you delete the configuration files, the reload command will regenerate them. No need to restart the server!
Warning: If you change the version text in any configuration file, the plugin will create a backup of that file, renaming it with the new version. Then it will restore the default configuration. If a backup file with the same file name exists, the plugin will write over the existing copy and restore the default configuration. However, if you remove the version section or its contents, the plugin will not create a backup file. Instead, it will delete the file and restore the default config.
Configuration
Warning: If you change the version text in any configuration file, the plugin will create a backup of that file, renaming it with the new version. Then it will restore the default configuration. If a backup file with the same file name exists, the plugin will write over the existing copy and restore the default configuration. However, if you remove the version section or its contents, the plugin will not create a backup file. Instead, it will delete the file and restore the default config.
I have added comments to detail everything as much as possible. If there is something that you do not understand, please ask in the Discussion page.
Spoiler: Config.yml
# ♦──────────────────────────────────♦
# │ DeathTax - Plugin Configuration │
# │ Author: TechnoRunner18 │
# │ Version 1.0.1 │
# │ LegendDoubleB @SpigotMC.org │
# ♦──────────────────────────────────♦
# DO NOT EDIT THIS VALUE! The plugin will create a backup of this file if you decide to update the plugin.
# If you do, once the plugin is reloaded, it will create a backup file with this version name, then restore the default config.
# If a backup file with the same file name exists, the plugin will write over the existing copy and restore the default config.
# If this value is empty, it will delete the config, then restore the default config.
version: 1.0.1
# Language localization.
# Available languages: en, es
# You can customize any message and add more languages in messages.yml.
# Please submit more translations!
language: en
# Do you want to show detailed messages in the console?
debug: false
# Would you like the plugin to check for updates?
update-check: true
# NOTE: All numbers must be positive. Set to 0 to disable.
# To have a range of numbers, insert a hyphen "-" inbetween two numbers. The number will be picked at random.
# (Ex. base_fee: 5-10)
# Section for death-by-environment taxation. (PvE)
death_by_pve:
# Enable the death-by-environment tax?
enabled: false
# PvE will not have any effect in these worlds.
disabledWorlds:
# - world
# - world_nether
# - world_the_end
# The amount of money lost on death.
base_fee: 0
# Percentage of money lost on death.
percentage: 0
# Section for death-by-player taxation. (PvP)
death_by_pvp:
# Enable the death-by-player tax?
enabled: false
# PvP will not have any effect in these worlds.
disabledWorlds:
# - world
# - world_nether
# - world_the_end
# The amount of money the victim loses.
base_fee: 0
# Percentage of money the victim loses.
percentage: 0
# The amount of money given to killer from lost money of victim.
killer_gain_base_allowance: 0
# Percentage of money given to killer from lost money of victim.
killer_gain_percentage: 0
# The amount of money that is taxed from the killer's earnings.
killer_tax_base_fee: 0
# Percentage of money that is taxed from the killer's earnings.
killer_tax_percentage: 0
# The base amount of money to take from the killer's balance as a penalty after taxes.
killer_penalty_base_fee: 0
# Percentage of the killer's balance to take as a penalty after taxes.
killer_penalty_percentage: 0
# ♦───────────────────♦
# │ DeathTax v1.0.1 │
# │ End of Config │
# │ - Thank You - │
# ♦───────────────────♦
Code (Text):
# ♦──────────────────────────────────♦
# │ DeathTax - Plugin Configuration │
# │ Author: TechnoRunner18 │
# │ Version 1.0.1 │
# │ LegendDoubleB @SpigotMC.org │
# ♦──────────────────────────────────♦
# DO NOT EDIT THIS VALUE! The plugin will create a backup of this file if you decide to update the plugin.
# If you do, once the plugin is reloaded, it will create a backup file with this version name, then restore the default config.
# If a backup file with the same file name exists, the plugin will write over the existing copy and restore the default config.
# If this value is empty, it will delete the config, then restore the default config.
version: 1.0.1
# Language localization.
# Available languages: en, es
# You can customize any message and add more languages in messages.yml.
# Please submit more translations!
language: en
# Do you want to show detailed messages in the console?
debug: false
# Would you like the plugin to check for updates?
update-check: true
# NOTE: All numbers must be positive. Set to 0 to disable.
# To have a range of numbers, insert a hyphen "-" inbetween two numbers. The number will be picked at random.
# (Ex. base_fee: 5-10)
# Section for death-by-environment taxation. (PvE)
death_by_pve:
# Enable the death-by-environment tax?
enabled: false
# PvE will not have any effect in these worlds.
disabledWorlds:
# - world
# - world_nether
# - world_the_end
# The amount of money lost on death.
base_fee: 0
# Percentage of money lost on death.
percentage: 0
# Section for death-by-player taxation. (PvP)
death_by_pvp:
# Enable the death-by-player tax?
enabled: false
# PvP will not have any effect in these worlds.
disabledWorlds:
# - world
# - world_nether
# - world_the_end
# The amount of money the victim loses.
base_fee: 0
# Percentage of money the victim loses.
percentage: 0
# The amount of money given to killer from lost money of victim.
killer_gain_base_allowance: 0
# Percentage of money given to killer from lost money of victim.
killer_gain_percentage: 0
# The amount of money that is taxed from the killer's earnings.
killer_tax_base_fee: 0
# Percentage of money that is taxed from the killer's earnings.
killer_tax_percentage: 0
# The base amount of money to take from the killer's balance as a penalty after taxes.
killer_penalty_base_fee: 0
# Percentage of the killer's balance to take as a penalty after taxes.
killer_penalty_percentage: 0
# ♦───────────────────♦
# │ DeathTax v1.0.1 │
# │ End of Config │
# │ - Thank You - │
# ♦───────────────────♦
Messages
All messages here are fully configurable. I added comments to detail what each message is intended for.
To demonstrate how to add more languages/custom messages, I tried to translate the english section into spanish(Espanol). This translation is not official and if there are any translation discrepancies, I apologize.
If you want to submit a translation for this plugin, please send LegendDoubleB a PM here on SpigotMC. Again, if there is something that you do not understand, please ask in the Discussion page
Commands
To demonstrate how to add more languages/custom messages, I tried to translate the english section into spanish(Espanol). This translation is not official and if there are any translation discrepancies, I apologize.
If you want to submit a translation for this plugin, please send LegendDoubleB a PM here on SpigotMC. Again, if there is something that you do not understand, please ask in the Discussion page
Spoiler: messages.yml
# ♦──────────────────────────────────♦
# │ DeathTax - Message Configuration │
# │ Author: TechnoRunner18 │
# │ Version 1.0.1 │
# │ LegendDoubleB @SpigotMC.org │
# ♦──────────────────────────────────♦
# DO NOT EDIT THIS VALUE! The plugin will create a backup of this file if you decide to update the plugin.
# If you do, once the plugin is reloaded, it will create a backup file with this version name, then restore the default config.
# If a backup file with the same file name exists, the plugin will write over the existing copy and restore the default config.
# If this value is empty, it will delete the config, then restore the default config.
version: 1.0.1
# Available languages: en, es
# You can customize any message and add more languages! You can also add customized sections.
# Please submit more translations!
language:
# This is the beginning of the English translation.
en:
# NOTE: Some placeholders will not work for some messages.
# Placeholders: %amount%, %prefix%, %player%
# All format codes are supported. (& / §)
# Set a prefix for all plugin messages here. Set to '' for no prefix/message.
# To use the prefix, you must place the '%prefix%' placeholder inside of your messages.
prefix: '&f[&6DeathTax&f]'
# This message is displayed when the "/deathtax reload" command was successful.
reload_message: '%prefix% &aDeathTax configuration reloaded!'
# This message is displayed if the command was incorrect.
invalid_command: '%prefix% &cInvalid command!'
# This message is displayed when a player does not have the correct permission for a command.
no_permission: '&cYou don''t have access to that command!'
# If a player is exempt from the tax, this message is displayed when they die.
player_is_exempt: '%prefix% &aYou are exempt from the death tax!'
# This message is displayed to the killer if their victim is exempt from the death tax.
pvpkiller_victim_is_exempt: '%prefix% &7Sorry, &3%player% &7is exempt from the death tax.'
# This message is displayed if a player's balance is negative when they die.
negative_balance: '%prefix% &7You now owe %amount% to the server.'
# This message is displayed if a killer earns money from their victim.
killer_earn: '%prefix% You earned %amount% from &3%player%&f.'
# This message is displayed if a killer is taxed from the earnings of their victim.
killer_tax: '%prefix% You were taxed a total of %amount% from your earnings.'
# This message is displayed when the killer is exempt from the taxation of their earnings.
pvpktax_exempt: '%prefix% You were not taxed from your earnings!'
# This message is displayed if the killer's balance is penalized.
killer_penalty: '%prefix% &7The server has penalized you in the amount of %amount%.'
# This message is displayed if killer is exempt from the killer peanlty.
killer_peanlty_exempt: '%prefix% You are exempt from the penalty!'
# This message shows how much money a player loses if they died from environmental causes.
playerlostpve: '%prefix% &dYou died! You lost %amount%.'
# This message shows how much money a player loses when they die from combat.
playerlostpvp: '%prefix% &dYou died as a result of combat! You lost %amount%.'
# This is the beginning of the Spanish translation.
# Este es el comienzo de la traducción al español.
es:
# NOTA: Algunos marcadores de posición no funcionarán para algunos mensajes.
# Marcadores de posición: %amount%, %prefix%, %player%
# Todos los códigos de formato son compatibles.
# Establecer un prefijo para todos los mensajes de plugin aquí. Establecer en '' para no prefijo/mensaje.
# Para usar el prefijo, debe colocar el marcador de posición '%prefix%' dentro de sus mensajes.
prefix: '&f[&6DeathTax&f]'
# Este mensaje se muestra cuando el comando "/deathtax reload" tuvo éxito.
reload_message: '%prefix% &a¡La configuración se recargó!'
# Este mensaje se muestra si el comando es incorrecta.
invalid_command: '%prefix% &c¡Comando inválido!'
# Este mensaje se muestra cuando un jugador no tiene el permiso correcto para un comando.
no_permission: '&c¡No tienes acceso a ese comando!'
# Si un jugador está exento del impuesto, este mensaje se muestra cuando mueren.
player_is_exempt: '%prefix% &a¡Has está exento del impuesto de la muerte!'
# Este mensaje se muestra al asesino si la víctima está exento del impuesto de la muerte.
pvpkiller_victim_is_exempt: '%prefix% &7Lo siento, &3%player% &7está exento del impuesto de muerte.'
# Este mensaje se muestra si el balance de un jugador es negativo.
negative_balance: '%prefix% &7Ahora debes %amount% al servidor.'
# Este mensaje se muestra cuando un asesino gana dinero de su víctima.
killer_earn: '%prefix% Has ganado %amount% de &3%player%&f.'
# Este mensaje se muestra si un asesino es impuesto en sus ganancias.
killer_tax: '%prefix% ¡Usted fue gravado al total de %money% de sus ganancias!.'
# Este mensaje se muestra cuando el asesino está exento de impuestos de sus ganancias.
pvpktax_exempt: '%prefix% ¡Has no fue gravado de sus ganancias!'
# El mensaje se muestra si el balance del asesino es penalizado.
killer_penalty: '%prefix% &7El servidor le ha penalizado en la cantidad de %amount%.'
# Este mensaje se muestra si el asesino está exento de ser penalizado.
killer_peanlty_exempt: '%prefix% ¡Usted no fue penalizado!'
# Este mensaje muestra la cantidad de dinero que un jugador pierde cuando murieron por causas ambientales.
playerlostpve: '%prefix% &d¡Has murió! Perdiste %amount%.'
# Este mensaje muestra la cantidad de dinero que un jugador pierde cuando mueren de combate.
playerlostpvp: '%prefix% &d¡Has murió como resultado del combate! Perdiste %amount%.'
# ♦───────────────────♦
# │ DeathTax v1.0.1 │
# │ End of Config │
# │ - Thank You - │
# ♦───────────────────♦
Code (Text):
# ♦──────────────────────────────────♦
# │ DeathTax - Message Configuration │
# │ Author: TechnoRunner18 │
# │ Version 1.0.1 │
# │ LegendDoubleB @SpigotMC.org │
# ♦──────────────────────────────────♦
# DO NOT EDIT THIS VALUE! The plugin will create a backup of this file if you decide to update the plugin.
# If you do, once the plugin is reloaded, it will create a backup file with this version name, then restore the default config.
# If a backup file with the same file name exists, the plugin will write over the existing copy and restore the default config.
# If this value is empty, it will delete the config, then restore the default config.
version: 1.0.1
# Available languages: en, es
# You can customize any message and add more languages! You can also add customized sections.
# Please submit more translations!
language:
# This is the beginning of the English translation.
en:
# NOTE: Some placeholders will not work for some messages.
# Placeholders: %amount%, %prefix%, %player%
# All format codes are supported. (& / §)
# Set a prefix for all plugin messages here. Set to '' for no prefix/message.
# To use the prefix, you must place the '%prefix%' placeholder inside of your messages.
prefix: '&f[&6DeathTax&f]'
# This message is displayed when the "/deathtax reload" command was successful.
reload_message: '%prefix% &aDeathTax configuration reloaded!'
# This message is displayed if the command was incorrect.
invalid_command: '%prefix% &cInvalid command!'
# This message is displayed when a player does not have the correct permission for a command.
no_permission: '&cYou don''t have access to that command!'
# If a player is exempt from the tax, this message is displayed when they die.
player_is_exempt: '%prefix% &aYou are exempt from the death tax!'
# This message is displayed to the killer if their victim is exempt from the death tax.
pvpkiller_victim_is_exempt: '%prefix% &7Sorry, &3%player% &7is exempt from the death tax.'
# This message is displayed if a player's balance is negative when they die.
negative_balance: '%prefix% &7You now owe %amount% to the server.'
# This message is displayed if a killer earns money from their victim.
killer_earn: '%prefix% You earned %amount% from &3%player%&f.'
# This message is displayed if a killer is taxed from the earnings of their victim.
killer_tax: '%prefix% You were taxed a total of %amount% from your earnings.'
# This message is displayed when the killer is exempt from the taxation of their earnings.
pvpktax_exempt: '%prefix% You were not taxed from your earnings!'
# This message is displayed if the killer's balance is penalized.
killer_penalty: '%prefix% &7The server has penalized you in the amount of %amount%.'
# This message is displayed if killer is exempt from the killer peanlty.
killer_peanlty_exempt: '%prefix% You are exempt from the penalty!'
# This message shows how much money a player loses if they died from environmental causes.
playerlostpve: '%prefix% &dYou died! You lost %amount%.'
# This message shows how much money a player loses when they die from combat.
playerlostpvp: '%prefix% &dYou died as a result of combat! You lost %amount%.'
# This is the beginning of the Spanish translation.
# Este es el comienzo de la traducción al español.
es:
# NOTA: Algunos marcadores de posición no funcionarán para algunos mensajes.
# Marcadores de posición: %amount%, %prefix%, %player%
# Todos los códigos de formato son compatibles.
# Establecer un prefijo para todos los mensajes de plugin aquí. Establecer en '' para no prefijo/mensaje.
# Para usar el prefijo, debe colocar el marcador de posición '%prefix%' dentro de sus mensajes.
prefix: '&f[&6DeathTax&f]'
# Este mensaje se muestra cuando el comando "/deathtax reload" tuvo éxito.
reload_message: '%prefix% &a¡La configuración se recargó!'
# Este mensaje se muestra si el comando es incorrecta.
invalid_command: '%prefix% &c¡Comando inválido!'
# Este mensaje se muestra cuando un jugador no tiene el permiso correcto para un comando.
no_permission: '&c¡No tienes acceso a ese comando!'
# Si un jugador está exento del impuesto, este mensaje se muestra cuando mueren.
player_is_exempt: '%prefix% &a¡Has está exento del impuesto de la muerte!'
# Este mensaje se muestra al asesino si la víctima está exento del impuesto de la muerte.
pvpkiller_victim_is_exempt: '%prefix% &7Lo siento, &3%player% &7está exento del impuesto de muerte.'
# Este mensaje se muestra si el balance de un jugador es negativo.
negative_balance: '%prefix% &7Ahora debes %amount% al servidor.'
# Este mensaje se muestra cuando un asesino gana dinero de su víctima.
killer_earn: '%prefix% Has ganado %amount% de &3%player%&f.'
# Este mensaje se muestra si un asesino es impuesto en sus ganancias.
killer_tax: '%prefix% ¡Usted fue gravado al total de %money% de sus ganancias!.'
# Este mensaje se muestra cuando el asesino está exento de impuestos de sus ganancias.
pvpktax_exempt: '%prefix% ¡Has no fue gravado de sus ganancias!'
# El mensaje se muestra si el balance del asesino es penalizado.
killer_penalty: '%prefix% &7El servidor le ha penalizado en la cantidad de %amount%.'
# Este mensaje se muestra si el asesino está exento de ser penalizado.
killer_peanlty_exempt: '%prefix% ¡Usted no fue penalizado!'
# Este mensaje muestra la cantidad de dinero que un jugador pierde cuando murieron por causas ambientales.
playerlostpve: '%prefix% &d¡Has murió! Perdiste %amount%.'
# Este mensaje muestra la cantidad de dinero que un jugador pierde cuando mueren de combate.
playerlostpvp: '%prefix% &d¡Has murió como resultado del combate! Perdiste %amount%.'
# ♦───────────────────♦
# │ DeathTax v1.0.1 │
# │ End of Config │
# │ - Thank You - │
# ♦───────────────────♦
Spoiler: Commands
/deathtax - Shows info about the plugin. (Permission: deathtax.about)
/deathtax reload - Reloads the config and message files. (Permission: deathtax.reload)
/deathtax reload - Reloads the config and message files. (Permission: deathtax.reload)
Permissions
Spoiler: Permissions
deathtax.* - Inherits all permissions.
deathtax.about - Permission to view information about the plugin.
deathtax.reload - Permission to reload the plugin configuration files.
deathtax.bypassall - Bypass all taxes.
deathtax.bypasspvptax - Bypass the death-by-player tax.
deathtax.bypasspvetax - Bypass the death-by-environment tax.
deathtax.bypasspvpktax - Killer can bypass the taxation of their profits.
deathtax.bypasspvpkpenalty - Killer can bypass the killer penalty tax.
deathtax.about - Permission to view information about the plugin.
deathtax.reload - Permission to reload the plugin configuration files.
deathtax.bypassall - Bypass all taxes.
deathtax.bypasspvptax - Bypass the death-by-player tax.
deathtax.bypasspvetax - Bypass the death-by-environment tax.
deathtax.bypasspvpktax - Killer can bypass the taxation of their profits.
deathtax.bypasspvpkpenalty - Killer can bypass the killer penalty tax.
*Ideal for: RPG and Economy Based Servers*
To-Do List
- Implement Update-Checker (100%)
- Add debug features and messages (100%)
- Put individual languages in their own messages.yml files (0%)
- (Any suggestions? Leave a message in the discussion page.)
Changelog
Spoiler: Changelog
Version 1.0.1
-------------
\+ Added debug functionality to output messages in console with details per scenario.
\+ Added an update checker with console messages.
\+ Added the wildcard permission. (deathtax.* - Inherits all permissions.)
\+ Added ability to update config files if the plugin version is different from the config version. If so, rename the old files as a backup, then replace with default config files from the active plugin.
\- Removed the deathtax.op permission.
\* Fixed the reload command (/deathtax reload).
\* Fixed some placeholders that were not working.
\* Fixed decimal rounding issues with currency values.
\* Fixed some messages appearing when they shouldn't have.
\* Fixed bug that caused number ranges in the config to subtract each other instead of defining a range.
\* Fixed bug when the killer's tax was higher than the killer's earnings and would withdraw the wrong amount.
\* Fixed bug when the killer was penalized regardless of permissions.
\* Added the prefix placeholder to most messages by default.
\* Changed "killer_gain_base_fee" to "killer_gain_base_allowance" within the "death_by_pvp" section in config.yml.
\* Changed "disabledworlds" to "disabledWorlds" in config.yml.
\* Values representing currency are now formatted with the server's economy plugin instead of the server machine's locale.
Version 1.0.0
-------------
\* Initial release.
Code (Text):
Version 1.0.1
-------------
\+ Added debug functionality to output messages in console with details per scenario.
\+ Added an update checker with console messages.
\+ Added the wildcard permission. (deathtax.* - Inherits all permissions.)
\+ Added ability to update config files if the plugin version is different from the config version. If so, rename the old files as a backup, then replace with default config files from the active plugin.
\- Removed the deathtax.op permission.
\* Fixed the reload command (/deathtax reload).
\* Fixed some placeholders that were not working.
\* Fixed decimal rounding issues with currency values.
\* Fixed some messages appearing when they shouldn't have.
\* Fixed bug that caused number ranges in the config to subtract each other instead of defining a range.
\* Fixed bug when the killer's tax was higher than the killer's earnings and would withdraw the wrong amount.
\* Fixed bug when the killer was penalized regardless of permissions.
\* Added the prefix placeholder to most messages by default.
\* Changed "killer_gain_base_fee" to "killer_gain_base_allowance" within the "death_by_pvp" section in config.yml.
\* Changed "disabledworlds" to "disabledWorlds" in config.yml.
\* Values representing currency are now formatted with the server's economy plugin instead of the server machine's locale.
Version 1.0.0
-------------
\* Initial release.
Legal
This project is Open-Source and is licensed under The MIT License.
Spoiler: LICENSE
ALL RIGHTS RESERVED
The MIT License (MIT)
Copyright (c) 2017 <Bryan Sydney Borne> (TechnoRunner18; AKA: LegendDoubleB @spigotmc.com)
Copyright (c) contributors
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2017 <Bryan Sydney Borne> (TechnoRunner18; AKA: LegendDoubleB @spigotmc.com)
Copyright (c) contributors
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please make sure to leave a review!
But...
Do not post errors in the review section. Please use the discussion page or PM LegendDoubleB about bugs and errors.
Thank you!
But...
Do not post errors in the review section. Please use the discussion page or PM LegendDoubleB about bugs and errors.
Thank you!
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
DeathTax is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 787 times (via Spigot). Download it and open it directly in the game.