HyperVirus can add a fully customizable virus into your server. You can choose the spread delay between the virus will try to infect a random player. If the infection chance is satisfied, the player will be infected: his health is reduced, and he will get some configurable potion effects and will emit configurable particles. When an infected player is staying near other players he will increase their chance to be infected.
HyperVirus adds two brand new item into the game!
Filter: This is a mask filter, with a certain durability. You can craft this if the crafting is enabled. Using this inside an anvil with any helmet you will be able to create a virus mask to protect yourself from the infection. Make sure to replace your filter when his durability is low!
Vaxin: This is the only cure to the virus, by drinking this the player will be recovered. You can craft this if the crafting is enabled.
Even mobs can become infected! You can choose any type of monster you would like to become infected and the relative chance to get infected.
When a player is hit by one of these mobs he will get the virus if he is not wearing a mask, otherwise the mask filter will be highly damaged.
This plugin is a complete rework of UltimateVirus, it solves a lot of the issues that plugin has (health bugged even if the plugin is removed, infection/recover issues, poor performances and more) and adds compatibility for latest minecraft versions.
/virus help - Show all the plugins commands.
/virus check [player] - Check if you (or another player) have a virus.
/virus filter <player> [durability] - Give a filter to a player.
/virus vaxin [player] - Give a vaxin to a player.
/virus infect <player> - Infect a player.
/virus recover <player> - Recover a player from the virus.
/virus infected - Show a gui with all infected players.
/virus reload - Reloads the plugin.
/virus sethealth <player:*(everyone)> <health> - Set to a custom value the health of a player.
hypervirus.bypass - Prevent virus infection
hypervirus.help - Allows the player to execute /virus help
hypervirus.check - Allows the player to execute /virus check
hypervirus.infectedlist - Allows the player to execute /virus infected
hypervirus.checkothers - Allows the player to execute /virus check <player>
hypervirus.infect - Allows the player to execute /virus infect <player>
hypervirus.recover - Allows the player to execute /virus recover <player>
hypervirus.sethealth - Allows the player to execute /virus sethealth <player:*> <health>
hypervirus.vaxin - Allows the player to execute /virus vaxin [player]
hypervirus.reload - Allows the player to execute /virus reload
%hypervirus_totalInfected% - returns the total number of infected
%hypervirus_isInfected% - returns customizable string (see config.yml)
%hypervirus_infectedTag% - returns customizable string (see config.yml)
Code (YAML):
# This should be enabled only at the request of the developer for support purposes. debug: false
items:
mask-filter:
material: PAPER
name: "&a&lMask Filter" lore: -
"" -
"&a&l* &7Use this inside an &aanvil&7 with" -
"&7any type of &ahelmet&7 to create a &a&nface mask&7." -
"" -
"&a&nFilter durability:&7 {durability}" -
"" default-durability: 200
mask:
lore-info: "&a&nFilter durability:&7 {durability}&a/{max_durability}" # The amount of damage that a mask will take after saving a player from the virus. infection-damage: 5
infected-mob-damage: 10
# The amount of mask hp for which the player will start receiving warning messages. low-hp-warning: 5
vaxin:
material: POTION
name: "&b&lVaxin" lore: -
"" -
"&2&l* &7Can recover from virus." -
"" actionbar-messages: true
infection: # Minimum number of Online players to start the virus spreading. min-online-players: 1
# The time (in seconds) between each time the virus tries to infect a random player. spread-delay: 60
# seconds
# 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 cleared when a player catches the virus. online-points-addition: 5
# 2 Health points = 1 Hearth - 20 health points = default health maximum-health: 2
chance: 0.3
boost-per-near-infected: 10
# Max distance (in blocks) required between an infected player and a healthy player to have a higher chance of being infected. infection-boost-distance: 1
conditions: # If enabled, OP players will be able to catch the virus. op: false
# Players can be infected only if their gamemode is set to survival. only-survival: true
remove-on-death: false
messages:
broadcast-infection: false
broadcast-recover: false
# Should a player receive a message when the mask saves him from a virus? notify-mask-hit: true
particles:
enabled: 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. type: SLIME
potion-effects:
enabled: 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 a float number) types: - CONFUSION
#3#0.2 duration: 10
mob-infection:
enabled: false
chance: 0.5
custom-name: "&c&nInfected &f&l%mob_type%" # If enabled, the message sent when an infected mob hits a player is sent only if the player is healthy no-spam-on-hit: false
# 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 mob-types: - ZOMBIE
# 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) placeholders:
hypervirus_isInfected:
message-if-true: "yes" messaeg-if-false: "no" hypervirus_infectedTag:
message-if-true: "Infected" messaeg-if-false: "Healthy"
# Some worlds in which the virus will not spread. disabled-worlds: - world1
- world2
# NOTE: in order to apply crafting chances you must restart your server. craftings:
filter: # Should this crafting being enabled? enabled: true
pattern: # IMPORTANT: X stands for Air (empty), DO NOT include X inside '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:
enabled: true
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):
MsgOnGiveFilter: '&7You were given a &aFilter&7.'
prefix: '&8
[&aHyperVirus&8
]'
OnInfection:
Title: '&2&nYou got a Virus!'
Subtitle: '&fFind a Vaxin to restore your Health'
OnMaskBreak:
Title: '&c&nWarning'
Subtitle: '&4Mask broken!'
LowFilterDurability: '&c&lYour filter has low durability
(%durability%)!' InfectedListMsg:
Header: '&4&nInfected List &7
(%total%)' EachLine: '&c&l* &7
%username%' MsgNoInfectedInsideList: '&7There are
no infected players at the moment.'
MsgOnGiveMask: '&7You were given an &aAntiVirus Mask&7.'
MsgOnGiveVaxin: '&7You were given a &bVaxin&7.'
MsgOnMaskHit: '&a&l
(☣
) &aYour mask saved you from a virus!'
MsgOnRecover: '&a&l
(☣
) &aYou recovered from the virus!'
MsgHitByInfectedMob: '&c&l
(☣
) &cAn infected mob hit you!'
MsgHitByInfectedMobWithMask: '&c&l
(☣
) &cAn infected mob hit you! &e
(-
%mask_dmg% HP to your mask
)'
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.'
MsgCheckVirus: '&cInfected
: &7%hypervirus_isInfected%' MsgCheckVirusOthers: '&cInfected &e
(%target%)&c: &7%hypervirus_isInfected%' MsgOnSetHealth: '&dSet health of &f
%player%&d to &f%health%&d.' ErrorMsgDrinkVaxin: '&7You can''t drink this, you are not infected!'
By purcheasing this plugin, you agree to the following conditions:
• You can not to resell this resource.
• You can not claim this resource as yours.
• You can not decomplie this resource.
• You can not chargeback (any chargeback will result your license to get deactivated).
• You can not publish the resource on any platform, or send it to your friends.
• You have your parent's permission to purchase this product.