Players get infected randomly by mobs or other infected players and feel bad every now and then
SoftDependency: Vault. Only needed when using the cure command feature and charging players for it.
You can check this and other plugins of my own in my own server I am currently bulding, MPskyblock.ddns.net I will probably be there too, it is not open 24/7 yet but it is opened from time to time, for more information join my discord server, talk to you there!
- Players can get randomly infected by: eating food they should not eat (specified in config), getting hit by mobs (specified in config) and by other players already infected
- Max amount of players to infect by an infected player configurable
- Every certain amount of time infected players feel a random effect from a list in config, and hear a sound specified in config
- Cure with a simple command!
- Ability to charge for getting cured
- Configurable messages
- Infected players will randomly sneeze and infect healthy players
- Healthy players can use medical masks to avoid being infected
- Infected players can cure themselves with a custom potion
- PlaceholderAPI placeholder: %MPCorona_check% for checking on players' infection statuses.
Commands:
<>: optional. ():required.
-/corona help - Displays a list of commands
-/corona version - Shows the plugin's current version
-/corona reload - Reloads the plugin's files
-/corona cure (player) - Cures the specified infected player
-/corona infect (player) - Infects a player if they are within a radius
-/corona givemask <player> - Gives the player a medical mask
-/corona givePotion <player> - Gives the player a curing potion
-/corona check <player> - Check a player's infection status
Permissions:
-corona.reload - Allows you to reload the plugin
-corona.version - Allows you to check the plugin's version
-corona.mask - Allows a player to craft the medical mask
-corona.givemask - Allows a player to get the mask with a simple command
-corona.infect - Allows a player to infect another with the infect command
-corona.cure - Allows a player to cure an infected player with the cure command.
-corona.givepotion - Allows a player to get the curing potion with a command.
-corona.curepotion - Allows a player to craft the curing potion.
-corona.check.self- Allows a player to check their own infection status.
-corona.check.others- Allows a player to check another player's infection status.
-corona.* - Gives access to every permission available
config.yml
config:
prefix: '&f[&cCoVID&f-&a19&f]'
# In the world listed below, people wont get infected by mobs, sneezes or the infect command
disabled worlds:
- 'this_world'
- 'that_world'
# if true, infected players will not feel symptoms in disabled worlds
symptoms disabled in disabled worlds: true
infect command:
# In case this was false this does not affect the console
enabled: true
# How many players is a player able to infect
infected per player: 1
# Radius needed for a player to infect another player with the infect command
radius: 5
# A medical mask for your players to protect themselves from other players and infected mobs
mask:
# permission for crafting the mask is 'corona.mask'
enabled: true
# in order to get a texture, you must put a players name and put it here https://freshcoal.com/index.php
# it will give you a command like this:
# /give @p skull 1 3 {display:{Name:"DarkHeroYT"},SkullOwner:{Id:"45ec0d88-898f-4ce8-9e5d-b28c75f79134",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjdhMDkwZDRjNmM5ZDUyODY2ZGNhNTY0Y2EwOTczOTg1YTY4OGJlYzg1YTNhMzA2Zjg1YjBhY2RiZDlhZGFiYSJ9fX0="}]}}}
# get the eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjdhMDkwZDRjNmM5ZDUyODY2ZGNhNTY0Y2EwOTczOTg1YTY4OGJlYzg1YTNhMzA2Zjg1YjBhY2RiZDlhZGFiYSJ9fX0= from that and put it in here: https://www.base64decode.org/
# the resulting URL is what you must put here
texture URL: 'http://textures.minecraft.net/texture/8d85e4ef468311c653796807d418ef944b98a59155e24b0e1a42ec8c066074f'
name: '&a&lMedical mask'
lore:
- '&fWith this mask you'
- '&fcan protect yourself'
- '&ffrom the virus'
# Recipe is:
# A B C #
# D E F #
# G H I #
recipe:
# Should the recipe be managed by this plugin
enabled: true
A: 'AIR'
B: 'AIR'
C: 'AIR'
D: 'STRING'
E: 'WHITE_WOOL'
F: 'STRING'
G: 'AIR'
H: 'AIR'
I: 'AIR'
# A potion that players can drink to cure themselves from corona. It also gives absorption and weakness 5 for a minute
cure potion:
# The permission for crafting this potion is 'corona.curePotion'
enabled: true
name: '&cCure for &lcorona'
lore:
- '&fDrink this to cure'
- '&fyourself from the &cvirus'
# Recipe is:
# A B C #
# D E F #
# G H I #
recipe:
# Should the recipe be managed by this plugin
enabled: true
A: 'GLASS'
B: 'WITHER_ROSE'
C: 'GLASS'
D: 'GLASS'
E: 'GOLDEN_APPLE'
F: 'GLASS'
G: 'GLASS'
H: 'WATER_BUCKET'
I: 'GLASS'
sound:
enabled: true
sound: AMBIENT_CAVE
# Cure command, also needs the 'corona.cure' permission
cure:
enabled: true
price: 1000
mobs that can infect:
- ZOMBIE
- SKELETON
- WITHER_SKELETON
- PHANTOM
food that can infect:
- COD
- SALMON
- MUTTON
- TROPICAL_FISH
- PUFFERFISH
- DRIED_KELP
- BEEF
- CHICKEN
- SPIDER_EYE
- POISONOUS_POTATO
- RABBIT
- ROTTEN_FLESH
# percentage of the chance a mob has to infect someone (out of 100)
chance to infect:
mob:
without mask: 10
with mask: 2
food: 20
messages:
no permission: '&cNo permission'
disabled: '&cThat command is disabled!'
world disabled: '&cThat feature is disabled in this world'
not online: '&cThat player does not exist or is not online'
given mask: '&aJust gave %player% a &lmask'
received mask: '&a%player% just sent you a &lMask&a. stay home!'
self received mask: '&aReceived &lMask'
full inv: '&c%player%s inventory is full'
mask disabled: '&cThe &amedical mask &cis disabled in config, please enable it in order to get it'
console mask: '&cThe console is already protected from coronavirus, it does not need a mask &f(try /corona givemask (player))'
you are not infected: '&cYou are not infected so you cannot infect anyone else'
now infected: '&f&lYou are now infected with &4CoVID&f-&a19 &f&lbeware of any symptoms'
feeling symptoms: '&cYou are feeling %symptom% because of coronavirus'
just infected someone: '&f%infecter% just infected %infected% with CoVID&f-&a19'
too many infected: '&cYou have infected as many people as you could'
must be in radius: '&cYou are too far from that player. you must be less than %radius% blocks apart'
already infected: '&cThat player is already infected'
cure disabled: '&cThe cure has not been found yet'
not enough money: '&cYou do not have enough money, you need: &f%price%'
not infected: '&cThat player is not infected'
cured someone: '&aYou just cured &f%cured%'
cured you: '&f%curer% &ajust cured you'
has cured: '&f%curer% &ahas cured &f%cured%'
player not infected: '&cThat player is not infected'
sneezed: '&c%player% just sneezed '
you sneezed: '&cYou just sneezed! Bless you'
cannot place: '&cHey, if i were you i would put that on my head instead of the floor'
cure command disabled: '&cEconomy is disabled, therefore the cure command is also disabled'
cured by potion: '&aA magic &5&lelixir &ajust cured you from the virus!'
someone cured by potion: '&aA magic &5&lelixir &ahas cured &l%player% &afrom the virus!'
cannot use potion: '&cYou are not infected, give that potion to someone that needs it better!'
potion disabled: '&cThe &5potion &cis disabled in config.'
console potion: '&cThe console is already protected from coronavirus, it does not need a cure &f(try /corona givePotion (player))'
self received potion: '&aReceived &5potion'
given potion: '&aJust gave %player% a &5potion'
received potion: '&a%player% just sent you a &5potion&a. stay home!'
infected:
random sneezes:
# Should random infected players sneeze and have the possibility to infect others by doing so?
enabled: true
# Operation mode for random sneezes: "all": every infected player will sneeze. "random": Only one random infected player will sneeze
mode: all
# Interval between sneezes, specify "s" for seconds, "m" for minutes and "h" for hours
interval: 10m
# Any player in this radius has probability to get infected
radius: 5
# This is the probability someone that sneezes has to infect a healthy player without mask
probability to infect: 80
# How players with masks should react to sneezes (100%: not affected by sneezes. 0%: will get infected when someone sneezes near them)
# Also, the probability for infecteds not to infect someone by sneezing
# (They do not add up)
mask effectiveness: 90
# Sound played when a player sneezes, to himself and the surrounding (not infected) players
sound:
enabled: true
params:
sound: ENTITY_GHAST_HURT
pitch: 1.0
volume: 0.5
# How long it takes a player to feel a symptom, specify "s" for seconds, "m" for minutes and "h" for hours
interval: 2m
# Effect,duration in seconds, amplifier
symptoms:
- CONFUSION,10,2
- POISON,10,1
- WEAKNESS,20,1
- BLINDNESS,5,1French config.yml (By @_Pomme2Terre )
french config.yml
config:
prefix: '&0&l[&cCovid&f-&a19&0&l]&r'
# In the world listed below, people wont get infected by mobs, sneezes or the infect command
disabled worlds:
- 'this_World'
- 'that_world'
# if true, infected players will not feel symptoms in disabled worlds
symptoms disabled in disabled worlds: true
infect command:
# In case this was false this does not affect the console
enabled: true
# How many players is a player able to infect
infected per player: 1
# Radius needed for a player to infect another player with the infect command
radius: 5
# A medical mask for your players to protect themselves from other players and infected mobs
mask:
# permission for crafting the mask is 'corona.mask'
enabled: true
# in order to get a texture, you must put a players name and put it here https://freshcoal.com/index.php
# it will give you a command like this:
# /give @p skull 1 3 {display:{Name:"DarkHeroYT"},SkullOwner:{Id:"45ec0d88-898f-4ce8-9e5d-b28c75f79134",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjdhMDkwZDRjNmM5ZDUyODY2ZGNhNTY0Y2EwOTczOTg1YTY4OGJlYzg1YTNhMzA2Zjg1YjBhY2RiZDlhZGFiYSJ9fX0="}]}}}
# get the eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjdhMDkwZDRjNmM5ZDUyODY2ZGNhNTY0Y2EwOTczOTg1YTY4OGJlYzg1YTNhMzA2Zjg1YjBhY2RiZDlhZGFiYSJ9fX0= from that and put it in here: https://www.base64decode.org/
# the resulting URL is what you must put here
texture URL: 'http://textures.minecraft.net/texture/8d85e4ef468311c653796807d418ef944b98a59155e24b0e1a42ec8c066074f'
name: '&a&lMasque médical'
lore:
- '&fAvec ce masque, vous'
- '&fserez protégé du virus'
#Recipe is:
# A B C
# D E F
# G H I
recipe:
enabled: true
'A': 'AIR'
'B': 'AIR'
'C': 'AIR'
'D': 'STRING'
'E': 'WHITE_WOOL'
'F': 'STRING'
'G': 'AIR'
'H': 'AIR'
'I': 'AIR'
sound:
enabled: true
sound: AMBIENT_CAVE
cure:
enabled: true
price: 1000
mobs that can infect:
- ZOMBIE
- SKELETON
- WITHER_SKELETON
- PHANTOM
food that can infect:
- COD
- SALMON
- MUTTON
- TROPICAL_FISH
- PUFFERFISH
- DRIED_KELP
- BEEF
- CHICKEN
- SPIDER_EYE
- POISONOUS_POTATO
- RABBIT
- ROTTEN_FLESH
# percentage of the chance a mob has to infect someone (out of 100)
chance to infect:
mob:
without mask: 10
with mask: 2
food: 20
messages:
no permission: '&cVous n"avez pas la permission'
disabled: '&cCette commande est désactivée !'
world disabled: '&cCette fonctionnalité est désactivée dans ce monde'
not online: '&cCe joueur n"existe pas ou n"est pas en ligne'
given mask: '&aJe viens de donner à %player% un &lmasque médical'
received mask: '&a%player% viens de t"envoyer un &lMasque&a. Restez à la maison!'
self received mask: '&aReçu un &lMasque'
full inv: '&c%player% a l"inventaire plein'
mask disabled: '&cLe &amasque médical &cest désactivé dans la configuration, veuillez l"activer pour l"obtenir'
console mask: '&cLa console est déjà protégée contre les coronavirus, elle n"a pas besoin de masque &f(fait /corona givemask (player))'
you are not infected: '&cVous n"êtes pas infecté, vous ne pouvez donc infecter personne d"autre'
now infected: '&f&lVous êtes maintenant infecté par le &4CoVID&f-&a19 &f&lméfiez-vous des symptômes'
feeling symptoms: '&cTu ressens %symptom% à cause du coronavirus'
just infected someone: '&f%infecter% juste infecté %infected% par le CoVID&f-&a19'
too many infected: '&cVous avez infecté autant de personnes que possible'
must be in radius: '&cVous êtes trop loin de ce joueur. Tu dois être à moins de %radius% blocs de lui'
already infected: '&cCe joueur est déjà infecté'
cure disabled: '&cLe remède n"a pas encore été trouvé'
not enough money: '&cVous n"avez pas assez d"argent, vous avez besoin de : &f%price%'
not infected: '&cCe joueur n"est pas infecté'
cured someone: '&aTu viens de guérir &f%cured%'
cured you: '&f%curer% &aviens de te guérir'
has cured: '&f%curer% &aa guéri &f%cured%'
player not infected: '&cCe joueur n"est pas infecté'
sneezed: '&c%player% juste éternué'
you sneezed: '&cVous venez d"éternuer ! Soyez bénis'
cannot place: '&cHey, si j"étais toi je mettrais ça sur ma tête au lieu du sol'
infected:
random sneezes:
# Should random infected players sneeze and have the possibility to infect others by doing so?
enabled: true
# Operation mode for random sneezes: "all": every infected player will sneeze. "random": Only one random infected player will sneeze
mode: all
# Interval between sneezes, specify "s" for seconds, "m" for minutes and "h" for hours
interval: 7m
# Any player in this radius has probability to get infected
radius: 5
# This is the probability someone that sneezes has to infect a healthy player without mask
probability to infect: 93
# How players with masks should react to sneezes (100%: not affected by sneezes. 0%: will get infected when someone sneezes near them)
# Also, the probability for infecteds not to infect someone by sneezing
# (They do not add up)
mask effectiveness: 90
# Sound played when a player sneezes, to himself and the surrounding (not infected) players
sound:
enabled: true
params:
sound: ENTITY_GHAST_HURT
pitch: 1.0
volume: 0.5
# How long it takes a player to feel a symptom, specify "s" for seconds, "m" for minutes and "h" for hours
interval: 2m
# Effect,duration in seconds, amplifier
symptoms:
- CONFUSION,10,2
- POISON,10,1
- WEAKNESS,20,1
- BLINDNESS,5,1Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta