after doing that some research I made this script
on potion effect added:
if player has permission "member.wizard":
execute console command "effect clear %player% minecraft:slowness"
Problem with this is this only works if I use command to give the player effect
This doesn't fix the problem with the splash and drinking and tipped arrow.
I tried looping every second but that takes too much load on server and doesn't even work for effects like harming
Is there a way to provide immunity of negative effects to a specific group of player which have specific permissions?
on potion effect added:
if player has permission "member.wizard":
execute console command "effect clear %player% minecraft:slowness"
Problem with this is this only works if I use command to give the player effect
This doesn't fix the problem with the splash and drinking and tipped arrow.
I tried looping every second but that takes too much load on server and doesn't even work for effects like harming
Is there a way to provide immunity of negative effects to a specific group of player which have specific permissions?