Mute Skript problem

  • 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.

WaterPhox

Member
Dec 3, 2018
1
0
0
26
I've been having the issue with the script which will be listed below, the error is: loop-player is neither an item stack nor an entity type (mute.sk, line 29: set action bar in "world" of loop-player to "&7You may speak in &7&o%{mute.%loop-player%}% seconds."')

SKRIPT:

command /mute <player> <number>:
permission: mute.*
trigger:
if arg-1 isn't set:
send "&cPlease choose a player to mute." to player
else:
set {mute.%arg-1%} to arg-2
broadcast "&b&lMUTE &3[-] &7%player% has muted %arg-1%."

every 1 second in "world":
loop all players:
if {mute.%loop-player%} is more than 0:
remove 1 from {mute.%loop-player%}

command /unmute [<offlineplayer>]:
permission: mute.*
permission message: &cYou do not have permission to do this.
executable by: Players and Console
trigger:
if {mute.%arg-1%} isn't set:
send "&7The player ""&b%arg-1%"" &7is not muted." to player
else:
delete {mute.%arg-1%}
broadcast "&b&lMUTE &3[-] &7%player% has unmuted %arg-1%."

every 20 seconds in "world":
loop all players:
if {mute.%loop-player%} is more than 0:
set action bar of loop-player to "&7You may speak in &7&o%{mute.%loop-player%}% seconds."
 
The error is different than your code.
code_language.skript:
set action bar in "world" of loop-player to "&7You may speak in &7&o%{mute.%loop-player%}% seconds."
Remove the in "world" part if it does exist.
 
Status
Not open for further replies.