Clear Potion Effects In a Radius

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

AddieGBA

New Member
Jul 29, 2025
7
2
3
Hi so i want to make a code so that when /abilityone is used you drain all potion effects from players surrounding you: My Code At The moment looks like this :
Code:
command /abilityone:
    description: Runs the First Ability I wont Even Lie
    permission: permission
    cooldown: 150 seconds
    cooldown message: §l§4You Are On Cooldown for %remaining time%!!

    trigger:
        loop all players in radius 7 around sender:
            if {trust::%sender%::%loop-entity%} is false:
                clear all potion effects from loop-entity

If someone could please tell me what I'm doing wrong that'd be much appreciated!! Also how to display command cooldown in seconds :sob:
 
I fixed your syntax error, but I'm not sure if you can display the cooldown only in seconds.


CSS:
command /abilityone:
    description: Runs the First Ability I wont Even Lie
    permission: permission
    cooldown: 150 seconds
    cooldown message: §l§4You Are On Cooldown for %remaining time%!!

    trigger:
        loop all players in radius 7 around player:
            if {trust::%player%::%loop-player%} is false:
                clear all potion effects of loop-player