Discussion in 'Plugin Development' started by NoU_X2, Jul 14, 2020.
Is there some sort of code or anyway to save potion effects when you die?
Use Player#getActivePotionEffects() to get the effects that the player has, store them somewhere, and reapply them when they respawn using Player#addPotionEffect()
What do you mean by store? Is it a code?
As in save for later.
Probably a HashMap or similar.
HashMap that stores UUID as the key, and a List of PotionEffects as the value.
Separate names with a comma.