Placeholders %ultimatevirus_totalInfected% : returns the number of infected
%ultimatevirus_isInfected% : returns customizable string (see config.yml)
%ultimatevirus_infectedTitle% : returns customizable string (see config.yml)
Files
Code (YAML):
# Keep this to false if you don't know what you are doing. Debug: false
################# # Main Settings # #################
# Items's display names and lores. MaskDisplayName: "&2AntiVirus Mask" MaskLore: -
"&2&l* &7Protect yourself from virus." -
"&2&oYou must keep this mask" -
"&2&oin your inventory." VaxinDisplayName: "&bVaxin" VaxinLore: -
"&b&l* &7Recover yourself from a virus." -
"&b&oYou can drink this vaxin" -
"&b&oonly if u are infected."
# Minimum number of Online Players to start the virus spreading. MinOnlinePlayers: 1
# The time (in seconds) between each time the virus tries to infect a random player. InfectionSpreadDelay: 60
# The chance that a player has of catching a virus (from 0(%) to 100(%)). InfectionPercentage: 40
# Every time a player avoids a virus some "OnlinePoints" are added to his stats, # the more OnlinePoints he has the more chance he has to catch a virus next time. # NOTE: These points will be added to the InfectionPercentage and are reset when a player catches the virus. OnlinePointsAddition: 5
# NOTE: to apply recipes changes you must reload/restart the server. EnableMaskRecipe: true
EnableVaxinRecipe: true
# The amount of damage that the mask will take after saving a player from a virus MaskDmgOnVirusSave: 1
# The amount of mask's hp for which the player will start receiving warning messages (MAX mask hp: 55) MaskLowHpWarnings: 5
# Should a player receive a message when the mask saves him from a virus? MsgOnMaskHit: false
# Players can be infected only if their gamemode is set to survival InfectOnlyOnSurvivalGamemode: true
# If enabled, also OP players will catch the virus InfectOpPlayers: false
# If enabled, when an infected player dies he will recover from the virus RemoveVirusOnPlayerDeath: false
# NOTE: You can customize every message in the lang.yml file. BroadcastOnPlayerInfection: false
BroadcastOnPlayerCure: false
# If enabled, the message sent when an infected mob hits a player is sent only if the player is healthy PreventSpamInfectedMobHit: false
# 2 Health points = 1 Hearth (20 = maximum health) MaximumHealthWhenInfected: 2
ParticlesWhenInfected: true
# You can find a list of ParticleTypes here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html # NOTE: Make sure that the particles you choose are supported in your server version. InfectionParticleType: SLIME
EnablePotionEffectsWhenInfected: true
# You can find a list of PotionEffectTypes here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html # NOTE: Make sure that the potion effects you choose are supported in your server version. # Add as many effects as you wish. FORMAT: PotionEffectType#Level#Chance (chance must be an integer number) PotionEffectsWhenInfected: - CONFUSION
#3#100 # Duration in seconds PotionEffectsDuration: 10
# Infection chance addition (%) to catch a virus if a player is near an infected player. # NOTE: If a player is near 2 infected players, "ChanceAdditionWhenNearInfected" is doubled. ChanceAdditionWhenNearInfected: 10
# Max distance (in blocks) required between an infected player and a healthy player to have a higher chance of being infected. SpreadDistanceBetweenPlayers: 10
# A list of mobs that can become infected # You can find a list of mob types here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html MobTypes: - ZOMBIE
# The chance that a mob has to become infected when spawns (%). MobInfectionSpreadChance: 20
# The custom name that an infected mob has. Here you can use %mob_type% to get displayed the name of the mob. CustomMobName: "&c&nInfected&f&l %mob_type%"
# The amount of damage dealt to a player mask when he is hitted by an infected mob. # NOTE: the mask has by default 55 hp MaskDmgOnInfectedMobHit: 5
################## # Other settings # ##################
# These placeholders can be used inside lang.yml (MsgCheckVirus & MsgCheckVirusOthers) and are supported by any other plugin # that supports PlaceholderAPI. # Other placeholders: %ultimatevirus_totalInfected% (returns the amount of infected) ultimatevirus_isInfected:
ReturnMsgWhenTrue: "yes" ReturnMsgWhenFalse: "no" ultimatevirus_infectedTitle:
ReturnMsgWhenTrue: "Infected" ReturnMsgWhenFalse: "Healthy"
# Some worlds in which the virus will not spread. DisabledWorlds: - world1
- world2
# NOTE: in order to apply crafting chances you must restart your server. custom-craftings:
mask:
pattern: # IMPORTANT: X stands for Air (empty), DO NOT include X in the 'ingredients' below. - 'SSS'
#First row in the crafting table - 'PPP'
#Second row - 'LLL'
#Third row ingredients: # Format: LETTER:ITEM_TYPE:AMOUNT # LETTER: can be any letter you want (SINGLE LETTER), just make sure it is different from the others used in this crafting. # ITEM_TYPE: the item type associated to the letter. # AMOUNT: item amount needed. - 'S:STRING:1'
- 'P:PAPER:1'
- 'L:LEATHER:1'
vaxin:
pattern: - 'FSE'
- 'SPS'
- 'RSB'
ingredients: - 'S:SUGAR:1'
- 'R:RED_MUSHROOM:1'
- 'B:BROWN_MUSHROOM:1'
- 'E:EGG:1'
- 'F:FERMENTED_SPIDER_EYE:1'
- 'P:POTION:1'
Code (YAML):
TitleOnInfection: '&2&nYou got a Virus!'
SubtitleOnInfection: '&fFind a Vaxin to restore your Health'
TitleOnLowMaskHealth: '&c&nWarning'
SubtitleOnLowMaskHealth: '&fLow mask durability
(%hp% HP)' TitleOnMaskBreak: '&c&nWarning'
SubtitleOnMaskBreak: '&4Mask broken!'
MsgOnGiveMask: '&a&l
(!
) &7You were given an &aAntiVirus Mask&7.'
MsgOnGiveVaxin: '&a&l
(!
) &7You were given a &bVaxin&7.'
MsgOnMaskHit: '&a&l
(!
) &aYour mask saved you from a virus!'
MsgOnRecover: '&a&l
(!
) &aYou recovered from the virus!'
MsgCheckVirus: '&8
[&2UV&8
] &cInfected
: &7%ultimatevirus_isInfected%' MsgCheckVirusOthers: '&8
[&2UV&8
] &cInfected &e
(%target%)&c: &7%ultimatevirus_isInfected%' MsgHitByInfectedMob: '&c&l
(!
) &cAn infected mob as hitted you! &e
(-
%mask_dmg% HP to your mask
)'
ErrorMsgDrinkVaxin: '&c&l
(!
) &7You can''t drink this, you are not infected!'
BroadcastOnPlayerInfection: '&8
[&fNEWS&8
] &4The health department confirms a new case
of the virus.
%player% is now infected.' BroadcastOnPlayerCure: '&8
[&fNEWS&8
] &2The health department announces that
%player% recovered from the virus.'
MsgNoInfectedInsideList: '&a&l
(!
) &aNo player is infected at the moment.'
MsgOnSetHealth: '&d&l
(!
) &dSetted health of &f
%player% to &f%health%&d.'