Clear all effects

  • Thread starter Deleted member 6377
  • Start date
  • 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!

Status
Not open for further replies.
D

Deleted member 6377

Using latest version of Skript on 1.8.9


How do I clear all effects of a player when they enter a command? I’ve been searching for solutions for a while but I haven’t found any.


I do not want to use any add-ons. Any help?
 
Weird, works with me...
Could you post the full code please?
The full code is over 300 lines, sorry. I also don't use any add-ons.

I used
code_language.skript:
execute console command "/effect %player% clear"
but I'm still looking for a better way to do this.
 
The full code is over 300 lines, sorry. I also don't use any add-ons.

I used
code_language.skript:
execute console command "/effect %player% clear"
but I'm still looking for a better way to do this.
I'm gonna be honest with you, I use that as well lol
But I tested what Efnilite said and it worked. Weird.
Still, what I meant to say was full trigger*, not full code sorry. Could you send it?
 
code_language.skript:
teleport player to {spawn1}
teleport arg 2 to {spawn2} (/duel accept player)
execute console command “/effect %player% clear
execute console command “/effect %arg-2% clear”
Simple Version ^
I'm gonna be honest with you, I use that as well lol
But I tested what Efnilite said and it worked. Weird.
Still, what I meant to say was full trigger*, not full code sorry. Could you send it?
lol the trigger is over 200 lines

Basically I made a duel type plug-in with only sumo. When the player accepts the duel request, they get teleported somewhere and other stuff. It also clears the effects of the player. (with the console command)
 
Last edited by a moderator:
Status
Not open for further replies.