Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mute [<offlineplayer>] [<number>] [<text>] [<text>]:
- trigger:
- if player has permission "Your.Permission":
- if arg-1 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-2 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-3 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-4 is not set:
- send "&e/mute (Player) (Integer) (Time Amount) (Reason)"
- send " &7Ex: /mute Timmy103 3 Days Disrespect"
- stop
- if arg-3 is "s" or "sec" or "second" or "seconds":
- set {tm.%arg-1%} to arg 2
- set {im.%arg-1%} to true
- if arg-4 contains "-s":
- loop all players:
- send "&e[SILENT] &e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% SECONDS]" loop-player
- else:
- broadcast "&e[MUTE] %player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% SECONDS]
- add arg 1 to {bpm::*}
- if arg-3 is "m" or "min" or "minute" or "minutes":
- set {tm.%arg-1%} to arg 2 * 60
- set {im.%arg-1%} to true
- if arg-4 contains "-s":
- loop all players:
- send "&e[SILENT] &e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% MINUTES]" loop-player
- else:
- broadcast "&e[MUTE] %player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% MINUTES]
- add arg 1 to {bpm::*}
- if arg-3 is "h" or "hour" or "hours":
- set {tm.%arg-1%} to arg 2 * 3600
- set {bd.%arg-1%} to now
- if arg-4 contains "-s":
- loop all players:
- send "&e[SILENT] &e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% DAYS]" loop-player
- else:
- broadcast "&e[MUTE] %player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% DAYS]
- add arg 1 to {bpm::*}
- if arg-3 is "d" or "day" or "days":
- set {tm.%arg-1%} to arg 2 * 86400
- set {im.%arg-1%} to true
- if arg-4 contains "-s":
- loop all players:
- send "&e[SILENT] &e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]" loop-player
- else:
- broadcast "&e[MUTE] %player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]
- add arg 1 to {bpm::*}
- if arg-3 is "w" or "week" or "weeks":
- set {tm.%arg-1%} to arg 2 * 604800
- set {im.%arg-1%} to true
- if arg-4 contains "-s":
- loop all players:
- send "&e[SILENT] &e%player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]" loop-player
- else:
- broadcast "&e[MUTE] %player% &7muted &e%arg-1% &7for &e%arg-4% &e[%arg-2% WEEKS]"
- add arg 1 to {bpm::*}
- else:
- send "You don't have the required permission to use this command"
- every second:
- loop {bpm::*}:
- remove 1 from {tm.%loop-value%}
- if {tm.%loop-value%} is 0:
- remove loop-value from {bpm::*}
- delete {im.%loop-value%}
- send "&e[MUTE] &7Your have been &eunmuted!" to loop-value
- on chat:
- if {im.%player%} is true:
- send "&cYou are currently muted!"
- cancel event
Add Comment
Please, Sign In to add comment