hopperelec / RandomEventsPlugin

A Spigot/PaperMC plugin that causes random events to occur in the world and block/entity drops to be randomised
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Only clear effects given by the plugin #9

Closed hopperelec closed 1 year ago

hopperelec commented 1 year ago

I'll need to store a Map<Player,PotionEffect> of the last potion effect given to players then modify this code https://github.com/HopperElec/RandomEventsPlugin/blob/e632829a43841b73f1f07e57cef336783d6950d9/src/main/java/uk/co/hopperelec/mc/randomevents/RandomEventsGame.java#L72-L81 to only remove the corresponding effect