Skript Version: Skript 2.2 (dev23)
Skript Author: Bensku
Minecraft Version: 1.8.8
Full Code:
Errors on Reload:
None
Console Errors:
None
Addons using (including versions):
Skellett v1.7.7dskUtilities v0.8.8skRayFall v1.9.5Umbaska v2.0 Beta 5.5.1 for Minecraft 1.10SkQuery v3.21.4TuSKe v1.7SharpSK v1.6.0RandomSK v2.0MundoSK v1.7.4WildSkript v1.8WolvSK v1.5.2SkStuff v1.6.3.6
Troubleshooting:
Have you tried searching the docs? No
Have you tried searching the forums? No
What other methods have you tried to fix it? I have tried changing the arguments a few times but this has not worked.
What you need:
Basically whenever I run "/mute ausername 5 minutes" it mutes them for 5 minutes but the message that sends to the player, instead of saying "You have been muted for 5 minutes." it says "You have been muted for <none>." Can you help me fix this?
[doublepost=1487696646,1487540257][/doublepost]Humpty dumpity bumped on a wall... yeah... bump..
[doublepost=1487806279][/doublepost]bump.
Skript Author: Bensku
Minecraft Version: 1.8.8
Full Code:
code_language.skript:
command /mute [<offline player>] [<timespan>]:
permission: unseenmc.mute
permission message: &8[&4CORE&8] &7Command not found.
trigger:
if arg 1 is not set:
send "&8[&4MUTE&8] &7Please specify a player. (And a timespan Ex. &c5 seconds)"
if arg 1 is set:
if "%arg 1%" is not "%player%":
if arg 1 has played before:
if arg 2 is not set:
if {muted::%uuid of arg 1%} is set:
delete {muted::%uuid of arg 1%}
#send "&8[&4MUTE&8] &c%arg 1% &7has been unmuted."
send "&8[&4MUTE&8] &cYou &7have been unmuted." to arg 1
loop all players:
if loop-player has permission "unseenmc.mute.alert":
send "&8[&4MUTE&8] &c%arg 1%&7 has been unmuted." to loop-player
else:
set {muted::%uuid of arg 1%} to true
loop all players:
if loop-player has permission "unseenmc.mute.alert":
send "&8[&4MUTE&8] &c%arg 1%&7 has been permanently muted." to loop-player
send "&8[&4MUTE&8] &cYou &7have been permanently muted." to arg 1
else:
set {ismuted::%uuid of arg 1%} to true
set {muted::%uuid of arg 1%} to arg 2
set {muted.time::%uuid of arg 1%} to now
#send "&8[&4MUTE&8] &c%arg 1% &7has been muted for &c%arg 2%&7."
send "&8[&4MUTE&8] &cYou &7have been muted for &c%arg 2%&7." to arg 1
loop all players:
if loop-player has permission "unseenmc.mute.alert":
send "&8[&4MUTE&8] &c%arg 1%&7 has been muted for &c%arg 2%&7." to loop-player
else:
send "&8[&4MUTE&8] &c%arg 1% &7could not be found."
else:
send "&8[&4MUTE&8] &7You cannot mute yourself."
None
Console Errors:
None
Addons using (including versions):
Skellett v1.7.7dskUtilities v0.8.8skRayFall v1.9.5Umbaska v2.0 Beta 5.5.1 for Minecraft 1.10SkQuery v3.21.4TuSKe v1.7SharpSK v1.6.0RandomSK v2.0MundoSK v1.7.4WildSkript v1.8WolvSK v1.5.2SkStuff v1.6.3.6
Troubleshooting:
Have you tried searching the docs? No
Have you tried searching the forums? No
What other methods have you tried to fix it? I have tried changing the arguments a few times but this has not worked.
What you need:
Basically whenever I run "/mute ausername 5 minutes" it mutes them for 5 minutes but the message that sends to the player, instead of saying "You have been muted for 5 minutes." it says "You have been muted for <none>." Can you help me fix this?
[doublepost=1487696646,1487540257][/doublepost]Humpty dumpity bumped on a wall... yeah... bump..
[doublepost=1487806279][/doublepost]bump.