Immunity - No-Not-Jaden/NotBounties GitHub Wiki
There are 4 different types of immunity, all of them providing immunity from bounties. Permission immunity is separate from the main types of immunity. You can only choose one of the main types of immunity to be active at one time, and all commands related to immunity will be for the active immunity type. The main type of immunity can be changed in the immunity configuration section presented below. To purchase one of the main immunity types, the player must have the permission node: notbounties.buyimmunity
(given by default).
Permission Immunity
This immunity is from the permission node: notbounties.immune
. This immunity can always be used.
Permanent Immunity
This immunity provides you with permanent resistance to bounties being set on you. You can buy this immunity with /bounty immunity
. The price of this immunity can be changed in the permanent-immunity configuration section below.
Scaling Immunity
This immunity provides you scaling resistance to bounties set under a value. The ratio of the amount of money you spend on immunity to the amount that protects you can be changed in the scaling-immunity configuration section below. For example, with a ratio set to 1, buying immunity for 1000 currency will protect you from any bounties set on you for 1000 currency or less. If the ratio changed to 0.75 and you spent the same amount of currency, then you would be protected from bounties set on you costing 750 currency or less. This immunity can be bought with /bounty immunity (price)
.
Time Immunity
This immunity provides you with immunity to all bounties set on you for a limited amount of time. The time does not stop when you log off. The amount of seconds per single currency you spend can be changed in the time-immunity configuration section below. For example, with seconds set to 60, spending 1000 currency will give you 60,000 seconds of immunity (= 1,000 min = 16.67 hr). This immunity can be bought with /bounty immunity (price)
.
Removing Immunity
You can remove Immunity with /bounty immunity remove
. You must have the permission node: notbounties.removeimmunity
(given by default).
Grace Period
This is the amount of seconds a player is granted immunity after a bounty had just been claimed on them. This can be changed in the grace-period configuration section below.
immunity:
# players can buy immunity from having bounties set on them as opposed to having immunity from the permission node notbounties.immune
# Immunity types:
# 0 - disabled
# 1 - permanent immunity
# 2 - scaling immunity
# 3 - time immunity
type: 2
# immunity will never run out
permanent-immunity:
cost: 128
# immunity will be stronger the more money you spend - only if permanent immunity is disabled
# if you buy immunity for 2500, then it protects you from bounties set for 2500, 2499, 1500, etc. (with ratio set to 1)
# bounties can be set on you for 2501 and higher
scaling-immunity:
# money spent -> bounty protection
# ex: if ratio is 0.5, buying immunity for 1000 will protect you from bounties 500 or less
ratio: 1.0
# immunity wil only last for a period of time
time-immunity:
# how many seconds 1 currency will add to your immunity
# ex: spending $15 with seconds: 3600 will give you 54000 seconds of immunity, or 15 hours
seconds: 3600
# in SECONDS how long before a player can set a bounty on a player that was just killed with a bounty
grace-period: 10
Auto Bounty Immunity
You can make players immune to Auto Bounties by giving them a permission for the related auto bounty.
notbounties.immunity.murder
Immune to murder bountiesnotbounties.immunity.random
Immune to random bountiesnotbounties.immunity.timed
Immune to timed bounties