Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /kick [<player>] [<text>]:
- permission: kick.sk
- permission message: &cYou do not have enough permissions to run this command!
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- kick arg-1 due to "&cYou've been kicked due to &a%arg 2%&c!"
- broadcast "&3%player% &7Has kicked &3%arg-1%&7! &7[%arg 2%]"
- add 1 to {%uuid of arg-1%::kicks}
- else:
- send "&cWrong format! Do &7/kick <player> <reason>"
- else:
- send "&cWrong format! Do &7/kick <player> <reason>"
- Command /warn [<player>] [<text>]:
- permission: kick.sk
- permission message: &cYou do not have enough permissions to run this command!
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- broadcast "&3%player% &7Has warned &3%arg-1%&7! &7[%arg 2%]"
- add 1 to {%uuid of arg-1%::warns}
- else:
- send "&cWrong format! Do &7/warn <player> <reason>"
- else:
- send "&cWrong format! Do &7/warn <player> <reason>"
- Command /mute [<offline player>] [<text>] [<timespan>]:
- permission: mute.sk
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- set {%uuid of arg-1%::muted::timespan} to (arg-3) later
- set {%uuid of arg-1%::muted} to true
- set {%uuid of arg-1%::muted::Reason} to arg-2
- broadcast "&3%player% &7Has muted &3%arg 1% &7for &c%arg 2%&7 [%arg-3%]"
- add 1 to {%uuid of arg-1%::mutes}
- else:
- send "&cDo: &7/mute <player> <reason> <time>"
- else:
- send "&cDo: &7/mute <player> <reason> <time>"
- else:
- send "&cDo: &7/mute <player> <reason> <time>"
- Command /unban [<offline player>]:
- permission: tempban.sk
- trigger:
- set {%uuid of arg-1%::tempban} to false
- send "&3%player% &7Has unbanned &3%arg-1%&7" to all players
- on chat:
- if {%uuid of player%::muted} is not set:
- stop
- if {%uuid of player%::muted} is true:
- cancel event
- send "&7You currently cannot speak! [Reason: &c%{%uuid of player%::muted::reason}%&7]"
- else if {%uuid of player%::muted} is false:
- stop
- every second:
- loop all players:
- if {%uuid of loop-player%::muted} is true:
- if now is greater than {%uuid of loop-player%::muted::timespan}:
- set {%uuid of loop-player%::muted} to false
- send "&7Your mute has run out!" to loop-player
- else:
- stop
- else:
- stop
- Command /unmute [<offline player>]:
- permission: mute.sk
- trigger:
- if arg-1 is set:
- set {%uuid of arg-1%::muted} to false
- else:
- send "&cPlease specify a player!"
- Command /tempban [<offline player>] [<text>] [<timespan>]:
- permission: tempban.sk
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- broadcast "&3%player% &7Has tempbanned &3%arg 1% &7for &c%arg 2%&7 [%arg 3%]"
- set {%uuid of arg-1%::tempban::timespan} to (arg-3) later
- set {%uuid of arg-1%::tempban} to true
- set {%uuid of arg-1%::tempban::reason} to arg-2
- add 1 to {%uuid of arg-1%::bans}
- kick arg-1 due to "%{%uuid of arg-1%::tempban::reason}%"
- else:
- send "&cDo: &7/tempban <player> <reason> <time>"
- else:
- send "&cDo: &7/tempban <player> <reason> <time>"
- else:
- send "&cDo: &7/tempban <player> <reason> <time>"
- Command /ban [<offline player>] [<text>]:
- permission: tempban.sk
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- broadcast "&3%player% &7Has tempbanned &3%arg 1% &7for &c%arg 2%&7 [&cPERMANENTLY]"
- set {%uuid of arg-1%::ban} to true
- set {%uuid of arg-1%::ban::reason} to arg-2
- add 1 to {%uuid of arg-1%::bans}
- kick arg-1 due to "%{%uuid of arg-1%::ban::reason}%"
- else:
- send "&cDo: &7/ban <player> <reason>"
- else:
- send "&cDo: &7/ban <player> <reason>"
- on join:
- if {%uuid of player%::tempban} is not set:
- stop
- if {%uuid of player%::tempban} is true:
- kick player due to "&7Your currently banned! [Reason: &c%{%uuid of player%::tempban::reason}%&7]"
- else if {%uuid of player%::tempban} is false:
- stop
- if {%uuid of player%::ban} is true:
- kick player due to "&7Your permanently banned! [Reason: &c%{%uuid of player%::ban::reason}%&7]"
- else if {%uuid of player%::ban} is false:
- stop
- if {%uuid of player%::playtime::m} is not set:
- set {%uuid of player%::playtime::m} to 0
- if {%uuid of player%::playtime::s} is not set:
- set {%uuid of player%::playtime::s} to 0
- if {%uuid of player%::playtime::h} is not set:
- set {%uuid of player%::playtime::h} to 0
- every second:
- loop all players:
- if {%uuid of loop-player%::tempban} is true:
- if now is greater than {%uuid of loop-player%::tempban::timespan}:
- set {%uuid of loop-player%::tempban} to false
- else:
- stop
- else:
- stop
- Command /history [<player>]:
- permission: helper.sk
- trigger:
- send ""
- send "&6&l%arg-1%'s Punishment History"
- send ""
- send "&7Warns: &a%{%uuid of player%::warns}%"
- send "&7Kicks: &a%{%uuid of player%::kicks}%"
- send "&7Mutes: &a%{%uuid of player%::mutes}%"
- send "&7Bans: &a%{%uuid of player%::bans}%"
- send ""
- send "&7Status: %{%player%.status}%"
- send "&7Total punishments: &a%{%uuid of player%::bans} + {%uuid of player%::mutes} + {%uuid of player%::kicks} + {%uuid of player%::warns}%"
- send ""
- every 5 seconds:
- loop all players:
- while loop-player is online:
- set {%loop-player%.status} to "&aOnline"
- while loop-player is offline:
- set {%loop-player%.status} to "&cOffline"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement