Remove Potion Effects

  • 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 comminuty!

    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.

Digszin

Member
Jan 26, 2017
28
0
1
32
When I go to remove speed from player this remove my armor (Items with lore or enchant)(SHARPSK)
code_language.skript:
on armor unequip:
    remove speed from player
Solution:
code_language.skript:
on armor unequip:
    execute console command "effect %player% clear"
But I don't want to see console message or send message to player, anyone know what i can do?
code_language.skript:
[17:57:15 INFO]: Took all effects from Digszin
[17:57:16 INFO]: Took all effects from Digszin
[17:57:16 INFO]: Took all effects from Digszin
[17:57:17 INFO]: Took all effects from Digszin
[17:57:17 INFO]: Took all effects from Digszin
[17:57:17 INFO]: Took all effects from Digszin
[17:57:18 INFO]: Took all effects from Digszin
[17:57:18 INFO]: Took all effects from Digszin
[17:57:18 INFO]: Took all effects from Digszin
[17:57:19 INFO]: Took all effects from Digszin
[17:57:19 INFO]: Took all effects from Digszin
[17:57:20 INFO]: Took all effects from Digszin
[17:57:20 INFO]: Took all effects from Digszin
[17:57:20 INFO]: Took all effects from Digszin
[17:57:21 INFO]: Took all effects from Digszin
[17:57:21 INFO]: Took all effects from Digszin
[17:57:21 INFO]: Took all effects from Digszin
[17:57:22 INFO]: Took all effects from Digszin
[17:57:22 INFO]: Took all effects from Digszin
[17:57:23 INFO]: Took all effects from Digszin
 
When I go to remove speed from player this remove my armor (Items with lore or enchant)(SHARPSK)
code_language.skript:
on armor unequip:
    remove speed from player
Solution:
code_language.skript:
on armor unequip:
    execute console command "effect %player% clear"
But I don't want to see console message or send message to player, anyone know what i can do?
code_language.skript:
[17:57:15 INFO]: Took all effects from Digszin
[17:57:16 INFO]: Took all effects from Digszin
[17:57:16 INFO]: Took all effects from Digszin
[17:57:17 INFO]: Took all effects from Digszin
[17:57:17 INFO]: Took all effects from Digszin
[17:57:17 INFO]: Took all effects from Digszin
[17:57:18 INFO]: Took all effects from Digszin
[17:57:18 INFO]: Took all effects from Digszin
[17:57:18 INFO]: Took all effects from Digszin
[17:57:19 INFO]: Took all effects from Digszin
[17:57:19 INFO]: Took all effects from Digszin
[17:57:20 INFO]: Took all effects from Digszin
[17:57:20 INFO]: Took all effects from Digszin
[17:57:20 INFO]: Took all effects from Digszin
[17:57:21 INFO]: Took all effects from Digszin
[17:57:21 INFO]: Took all effects from Digszin
[17:57:21 INFO]: Took all effects from Digszin
[17:57:22 INFO]: Took all effects from Digszin
[17:57:22 INFO]: Took all effects from Digszin
[17:57:23 INFO]: Took all effects from Digszin

code_language.skript:
/effect player clear
It's a minecraft vanilla command , so the console will keep spam that execute.
You can disable them on:
code_language.skript:
Spigot.yml
Commands
log: false
 
try:
code_language.skript:
on armor unequip:
    if name of event-item is "test":
        if lore of event-item is "lore":
            remove speed from player

I'm not sure if this works, I've never used sharpsk
 
  • Like
Reactions: Aerox
try:
code_language.skript:
on armor unequip:
    if name of event-item is "test":
        if lore of event-item is "lore":
            remove speed from player

I'm not sure if this works, I've never used sharpsk
Don't work
Can i ask just the reason of?
It's too simple disable the logs into the spigot.yml file.
Don't work :/
code_language.skript:
commands:
  silent-commandblock-console: true
  tab-complete: 0
  log: false
 
You can try using Skellett or QuarSK, either will work, and do the following:
code_language.skript:
on armor unequip:
    remove speed from player's active potion effects
 
Status
Not open for further replies.