Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- fake: Unknown command. Type ""/help"" for help.
- # Chat
- on quit:
- broadcast "&8[&c-&8] &7%player%"
- set {%player%.bomblob} to false
- on chat:
- cancel event
- if {mute::%player's uuid%::mute} is true:
- if {mute::%player's uuid%::span} is greater than 0 seconds:
- set {_diff} to difference between now and {mute::%player's uuid%::stamp}
- if {_diff} >= {mute::%player's uuid%::span}:
- set {mute::%player's uuid%::span} to 0 seconds
- set {mute::%player's uuid%::mute} to false
- set {mute::%player's uuid%::stamp} to 0 seconds
- else:
- set {_wait} to difference between {mute::%player's uuid%::span} and {_diff}
- send ""
- send "&7You are &cmuted &7for &e%{mute::%player's uuid%::msg}%"
- send "&7You may speak in &e%{_wait}%"
- send ""
- stop
- else:
- if {mute::%player's uuid%::msg} is false:
- send "&7You are &cmuted! &7You cannot speak."
- else:
- send "&7You are &cmuted &7for &e%{mute::%player's uuid%::msg}%"
- stop
- if {%player%.sc} is true:
- if {%player%.rank} is "default":
- set {%player%.sc} to false
- else:
- sendStaffMsg(player, message)
- stop
- set message to coloured message
- if {%player%.rank} is "default":
- broadcast "&8[&7%{%player%.level}%&8] &7%player%&7: %message%"
- stop
- if {%player%.rank} is "admin":
- broadcast "&8[&7%{%player%.level}%&8] &4[ADMIN] &c%player%&f: %message%"
- stop
- if {%player%.rank} is "owner":
- broadcast "&8[&7%{%player%.level}%&8] &4[OWNER] &c%player%&f: %message%"
- stop
- if {%player%.rank} is "dev":
- broadcast "&8[&7%{%player%.level}%&8] &2[DEV] &a%player%&f: %message%"
- stop
- if {%player%.rank} is "builder":
- broadcast "&8[&7%{%player%.level}%&8] &5[BUILDER] &d%player%&f: %message%"
- stop
- if {%player%.rank} is "mod":
- broadcast "&8[&7%{%player%.level}%&8] &6[MOD] &e%player%&f: %message%"
- stop
- if {%player%.rank} is "god":
- broadcast "&8[&7%{%player%.level}%&8] &3[GOD] &b%player%&f: %message%"
- stop
- # Load
- on load:
- delete {ranks::*}
- add "admin" to {ranks::*}
- add "owner" to {ranks::*}
- add "dev" to {ranks::*}
- add "builder" to {ranks::*}
- add "default" to {ranks::*}
- add "mod" to {ranks::*}
- add "god" to {ranks::*}
- delete {staffranks::*}
- add "admin" to {staffranks::*}
- add "owner" to {staffranks::*}
- add "dev" to {staffranks::*}
- add "builder" to {staffranks::*}
- add "mod" to {staffranks::*}
- loop all players:
- if {%loop-player%.rank} is not set:
- set {%loop-player%.rank} to "default"
- if {%loop-player%.level} is not set:
- set {%loop-player%.level} to 0
- # Join
- on join:
- broadcast "&8[&a+&8] &7%player%"
- if {%player%.rank} is not set:
- set {%player%.rank} to "default"
- if {%player%.level} is not set:
- set {%player%.level} to 0
- set {%player%.bomblob} to false
- on connect:
- if {tempban::%player's uuid%::ban} is true:
- set {_diff} to difference between now and {tempban::%player's uuid%::stamp}
- set {_remain} to difference between {tempban::%player's uuid%::span} and {_diff}
- if {_diff} < {tempban::%player's uuid%::span}:
- kick the player due to "%{tempban::%player's uuid%::msg}% &8| &7Punishment expires in %{_remain}%"
- else:
- set {tempban::%player's uuid%::ban} to false
- set {tempban::%player's uuid%::msg} to ""
- set {tempban::%player's uuid%::span} to 0 seconds
- set {tempban::%player's uuid%::stamp} to 0 seconds
- function updateStaff():
- delete {staff::*}
- loop all players:
- if {staffranks::*} contains {%loop-player%.rank}:
- add loop-player to {staff::*}
- function sendStaffMsg(p: player, m: text):
- loop {staff::*}:
- message "&8[&6Staff&8] &e%{_p}%&f: %{_m}%" to loop-value
- command /id:
- permission: staff.id
- permission message: {@fake}
- description: Find the ID of the item you're holding
- trigger:
- message "&aYou're holding a &e%type of tool% &awhose ID is &e%id of tool%."
- command /ranks:
- permission: staff.ranks
- permission message: {@fake}
- trigger:
- send "&6Ranks: &e%{ranks::*}%"
- command /staff [<text>]:
- trigger:
- updateStaff()
- set {_fail} to false
- if size of {staff::*} is 0:
- set {_fail} to true
- if {vanishAll} is true:
- set {_fail} to true
- if {_fail} is true:
- send "&aNo staff online."
- stop
- send "&2Staff online: &a%{staff::*}%"
- if arg-1 is "help":
- if {staff::*} contains player:
- send ""
- send "&e/ranks &8- &7Available ranks."
- send "&e/rank &8- &7Set a player's rank."
- send "&e/sc &8- &7Enable staff chat."
- send "&e/fs &8- &7Force start a game."
- send ""
- command /rank [<offline player>] [<text>]:
- permission: op
- permission message: {@fake}
- trigger:
- if arg-1 is not set:
- send "&c/rank <player> <rank>"
- else:
- if arg-2 is not set:
- send "&7%arg-1%'s &arank is %{%arg-1%.rank}%"
- else:
- if {ranks::*} contains arg-2:
- set {%arg-1%.rank} to arg-2
- send "&7Set &c%arg-1%'s &7rank to &c%arg-2%"
- updateStaff()
- send "&7Your rank is now &c%arg-2%." to arg-1
- if {staffranks::*} contains arg-2:
- loop {staff::*}:
- send "" to loop-value
- send "&6Staff Update! > &e%arg-1% &7is now &e%arg-2%!" to loop-value
- send "" to loop-value
- else:
- send "&cInvalid rank. Try /ranks."
- command /staffchat [<text>]:
- aliases: /sc
- trigger:
- updateStaff()
- if {staff::*} contains player:
- if arg-1 is not set:
- if {%player%.sc} is not set:
- send "&aEnabled &eStaff chat"
- set {%player%.sc} to true
- stop
- if {%player%.sc} is false:
- send "&aEnabled &eStaff chat"
- set {%player%.sc} to true
- stop
- set {%player%.sc} to false
- send "&cDisabled &eStaff chat"
- stop
- sendStaffMsg(player, arg-1)
- else:
- send "{@fake}"
- # ###############
- # Miscellaneous #
- # ###############
- command /buy:
- trigger:
- send ""
- send "&6<link:http://kaboom4v4.buycraft.net>Click here<reset> &eto view our Buycraft"
- send ""
- command /tphere [<offline player>]:
- permission: staff.tphere
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- if arg-1 is online:
- teleport arg-1 to player
- send "&eTeleporting..."
- else:
- send "&c%arg-1% is offline."
- else:
- send "&c/tphere (player)"
- command /tpall:
- permission: staff.tpall
- permission message: {@fake}
- trigger:
- teleport all players to player
- send "&eTeleported all players."
- command /feed [<offline player>]:
- permission: staff.feed
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- if arg-1 is online:
- set {_feed} to arg-1
- else:
- send "&c%arg-1% is offline."
- stop
- else:
- set {_feed} to player
- set the food level of {_feed} to 10
- send "&6Fed &e%{_feed}%."
- command /speed [<number>] [<text>]:
- executable by: players
- permission: staff.speed
- permission message: {@fake}
- trigger:
- if arg-1 is not set:
- send "&c/speed <number> [fly / walk]"
- stop
- else:
- set {_val} to arg-1
- set {_val} to round({_val})
- if {_val} > 3:
- set {_val} to 3
- if {_val} < 1:
- set {_val} to 1
- if player is flying:
- set {_mode} to 1
- else:
- set {_mode} to 2
- if arg-2 is set:
- if arg-2 is "fly" or "flying":
- set {_mode} to 1
- if arg-2 is "walk" or "walking":
- set {_mode} to 2
- if {_mode} is 1:
- if {_val} is 1:
- set the player's fly speed to 0.1
- if {_val} is 2:
- set the player's fly speed to 2
- if {_val} is 3:
- set the player's fly speed to 3
- send "&eSet flying speed to &6%{_val}%"
- stop
- if {_mode} is 2:
- if {_val} is 1:
- set the player's walk speed to 0.2
- if {_val} is 2:
- set the player's walk speed to 2
- if {_val} is 3:
- set the player's walk speed to 3
- send "&eSet walking speed to &6%{_val}%"
- command /help:
- trigger:
- send ""
- send "&6Kaboom &8- &e4v4"
- send "&e/buy &8- &7View our &eBuycraft"
- send ""
- command /?:
- trigger:
- make player execute "/help"
- # ##############
- # Punishments #
- # ##############
- command /mute [<offline player>] [<text>] [@ <timespan>]:
- permission: staff.mute
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- if arg-1 is online:
- set {_minspan} to 1 second
- set {_zerospan} to 0 seconds
- set {_uuid} to uuid of arg-1
- if arg-2 is set:
- set {_reason} to arg-2
- set {_reason} to colored {_reason}
- if arg-3 is set:
- if arg-3 >= {_minspan}:
- set {mute::%{_uuid}%::span} to arg-3
- set {mute::%{_uuid}%::mute} to true
- set {mute::%{_uuid}%::stamp} to now
- set {mute::%{_uuid}%::msg} to {_reason}
- send "&7You have been &cmuted &7for &e%arg-2% &7[&e%arg-3%&7]" to arg-1
- broadcast "&b%player% &7muted &b%arg-1% &7for &e%arg-2% &7[&e%arg-3%&7]"
- else:
- if arg-3 = {_zerospan}:
- make player execute "/unmute %arg-1%"
- else:
- send "&cYour mute span should be at least 1 second."
- else:
- if arg-2 is set:
- if {mute::%{_uuid}%::mute} is not set:
- set {mute::%{_uuid}%::mute} to false
- send "&7Muted &e%arg-1% &7for &e%{_reason}% &7(FOREVER)"
- set {mute::%{_uuid}%::span} to {_zerospan}
- set {mute::%{_uuid}%::mute} to true
- set {mute::%{_uuid}%::stamp} to now
- set {mute::%{_uuid}%::msg} to {_reason}
- broadcast "&b%player% &7muted &b%arg-1% &7for &e%{_reason}% &7[&7FOREVER&7]"
- send "&7You have been &cmuted &7for &e%{_reason}%" to arg-1
- else:
- if {mute::%{_uuid}%::mute} is not set:
- set {mute::%{_uuid}%::mute} to false
- if {mute::%{_uuid}%::mute} is false:
- send "&7Muted &e%arg-1% &7forever."
- set {mute::%{_uuid}%::span} to {_zerospan}
- set {mute::%{_uuid}%::mute} to true
- set {mute::%{_uuid}%::stamp} to now
- set {mute::%{_uuid}%::msg} to false
- broadcast "&b%player% &7muted &b%arg-1% &7[&7FOREVER&7]"
- send "&7You have been &cmuted." to arg-1
- else:
- make player execute "/unmute %arg-1%"
- else:
- send "&cPlayer is not online."
- else:
- send "&c/mute (player) [reason] @ [timespan]"
- command /unmute [<offline player>]:
- permission: staff.unmute
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- if arg-1 is online:
- set {_uuid} to uuid of arg-1
- if {mute::%{_uuid}%::mute} is not set:
- set {mute::%{_uuid}%::mute} to false
- if {mute::%{_uuid}%::mute} is false:
- send "&e%arg-1% &7is not &6muted."
- stop
- set {mute::%{_uuid}%::mute} to false
- set {mute::%{_uuid}%::span} to 0 seconds
- send "&7Unmuted &e%arg-1%."
- broadcast "&b%player% &7unmuted &b%arg-1%"
- else:
- send "&cPlayer is not online."
- else:
- send "&c/unmute (player)"
- function sendBanFlags(p: player):
- send "&4Note: &cThis is a FOREVER ban" to {_p}
- send "&e/ban (player) [reason with flags] @ [timespan]" to {_p}
- send "" to {_p}
- send "&4Flags &c(include in reason if applicable):" to {_p}
- send "&e-s &8- &7Silent ban." to {_p}
- send "&e-f &8- &7Force ban." to {_p}
- send "&e-c &8- &7Anonymous ban (console)." to {_p}
- command /ban [<offline player>] [<text>] [@ <timespan>]:
- permission: staff.ban
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- if arg-1 is "help":
- sendBanFlags(player)
- stop
- set {_content} to arg-2
- updateStaff()
- set {_staffsafe} to false
- set {_force} to false
- if {staff::*} contains arg-1:
- set {_staffsafe} to true
- set {_force} to true
- if {_content} contains "-f":
- set {_staffsafe} to false
- replace all " -f" in {_content} with ""
- replace all "-f " in {_content} with ""
- replace all "-f" in {_content} with ""
- if arg-1 is player:
- if {_force} is false:
- send "&cNo banning yourself!"
- stop
- set {_silent} to false
- if {_content} contains "-s":
- set {_silent} to true
- replace all " -s" in {_content} with ""
- replace all "-s " in {_content} with ""
- replace all "-s" in {_content} with ""
- set {_banner} to player
- if {_content} contains "-c":
- set {_banner} to "&bConsole"
- replace all " -c" in {_content} with ""
- replace all "-c " in {_content} with ""
- replace all "-c" in {_content} with ""
- if {_staffsafe} is false:
- set {_empty} to false
- set {_realcontent} to {_content}
- if arg-2 is not set:
- set {_realcontent} to "&fBanned by an operator."
- set {_empty} to true
- if {_realcontent} is "":
- set {_realcontent} to "&fBanned by an operator."
- set {_empty} to true
- if {_realcontent} is " ":
- set {_realcontent} to "&fBanned by an operator."
- set {_empty} to true
- if arg-3 is not set:
- set {tempban::%arg-1's uuid%::ban} to false
- set {tempban::%arg-1's uuid%::span} to 0 seconds
- set {tempban::%arg-1's uuid%::stamp} to 0 seconds
- ban arg-1 because "&c&lPerm Ban &8|&r &6Bed&eClash &8- &7%colored {_realcontent}%"
- kick arg 1 due to "&c&lPerm Ban &8|&r &6Bed&eClash &8- &7%colored {_realcontent}%"
- else:
- unban arg-1
- set {tempban::%arg-1's uuid%::ban} to true
- set {tempban::%arg-1's uuid%::span} to arg-3
- set {tempban::%arg-1's uuid%::stamp} to now
- set {tempban::%arg-1's uuid%::msg} to "&c&lTempban&r &8| &6Bed&eClash &8- &7%colored {_realcontent}%"
- kick arg 1 due to "&c&lTempban&r &8| &6Bed&eClash &8- &7%colored {_realcontent}% &8| &7Expires in &e%arg-3%"
- if {_silent} is false:
- if arg-2 is not set:
- broadcast "&b%{_banner}% &cbanned &b%arg-1% &7[FOREVER]"
- else:
- if {_empty} is false:
- if arg-3 is set:
- broadcast "&b%{_banner}% &cbanned &b%arg-1% &7for &c%colored {_content}% &7[&e%arg-3%&7]"
- else:
- broadcast "&b%{_banner}% &cbanned &b%arg-1% &7for &c%colored {_content}% &7[FOREVER]"
- else:
- if arg-3 is set:
- broadcast "&b%{_banner}% &cbanned &b%arg-1% &7[&e%arg-3%&7]"
- else:
- broadcast "&b%{_banner}% &cbanned &b%arg-1% &7[FOREVER]"
- else:
- if {_empty} is false:
- if arg-3 is set:
- loop {staff::*}:
- send "&6Staff > &b%{_banner}% &6&lsilently&r &cbanned &b%arg-1% &7for &c%colored {_content}% &7[&e%arg-3%&7]" to loop-value
- else:
- loop {staff::*}:
- send "&6Staff > &b%{_banner}% &6&lsilently&r &cbanned &e%arg-1% &7for &c%colored {_content}% &7[FOREVER]" to loop-value
- else:
- loop {staff::*}:
- send "&6Staff > &b%{_banner}% &6&lsilently&r &cbanned &e%arg-1% &7[FOREVER]" to loop-value
- if {_banner} is "&bConsole":
- loop {staff::*}:
- send "&6Staff > &b%player% &7banned the user above &e&lanonymously." to loop-value
- else:
- send "&4Warning: &cThis will ban a staff member."
- send "&cPlease add the &4-f &cflag to the reason to ban the user."
- else:
- sendBanFlags(player)
- command /unban [<offline player>] [<text>]:
- permission: staff.unban
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- unban arg-1
- if {tempban::%arg-1's uuid%::ban} is true:
- set {tempban::%arg-1's uuid%::ban} to false
- set {tempban::%arg-1's uuid%::span} to 0 seconds
- set {tempban::%arg-1's uuid%::stamp} to 0 seconds
- set {_silent} to false
- if arg-2 is set:
- set {_content} to arg-2
- if {_content} contains "-s":
- set {_silent} to true
- if {_silent} is false:
- broadcast "&b%player% &cunbanned &b%arg-1%"
- else:
- updateStaff()
- loop {staff::*}:
- send "&6Staff > &b%player% &6&lsilently&r &cunbanned &e%arg-1%" to loop-value
- else:
- send "&c/unban (username) [flags]"
- send "&aFlags:"
- send "&e-s &8- &7Silently unban"
- command /status [<offline player>]:
- permission: staff.status
- permission message: {@fake}
- trigger:
- if arg-1 is set:
- set {_user} to arg-1
- else:
- set {_user} to player
- set {_joined} to "&aYes."
- if {%{_user}%.rank} is not set:
- set {_joined} to "&cNo."
- set {_uuid} to uuid of {_user}
- set {_detailsban} to "&cNo."
- if {tempban::%{_uuid}%::ban} is true:
- set {_diff} to difference between now and {tempban::%{_uuid}%::stamp}
- if {_diff} >= {tempban::%{_uuid}%::span}:
- set {tempban::%{_uuid}%::ban} to false
- set {tempban::%{_uuid}%::span} to 0 seconds
- set {tempban::%{_uuid}%::stamp} to 0 seconds
- set {tempban::%{_uuid}%::msg} to ""
- else:
- set {_realdiff} to difference between {tempban::%{_uuid}%::span} and {_diff}
- set {_detailsban} to "&aYes. &7(&aRemaining time: &e%{_realdiff}%&7) &7[&6Reason: &e%{tempban::%{_uuid}%::msg}%&7]"
- else:
- if {_user} is banned:
- set {_detailsban} to "&aYes. &7(FOREVER)"
- set {_muted} to "&cNo."
- if {mute::%{_uuid}%::mute} is true:
- set {_diff} to difference between now and {mute::%{_uuid}%::stamp}
- set {_mutefail} to false
- if {mute::%{_uuid}%::span} is greater than 0 seconds:
- if {_diff} >= {mute::%{_uuid}%::span}:
- set {mute::%{_uuid}%::mute} to false
- set {mute::%{_uuid}%::span} to 0 seconds
- set {mute::%{_uuid}%::stamp} to 0 seconds
- set {mute::%{_uuid}%::msg} to false
- else:
- set {_mutefail} to true
- else:
- set {_mutefail} to true
- if {_mutefail} is true:
- if {mute::%{_uuid}%::span} is 0 seconds:
- set {_muted} to "&aYes. &7(FOREVER)"
- else:
- set {_realdiff} to difference between {mute::%{_uuid}%::span} and {_diff}
- set {_muted} to "&aYes. &7(&aRemaining time: &e%{_realdiff}%&7)"
- if {mute::%{_uuid}%::msg} is false:
- set {_muted} to "%{_muted}% &7[No reason attached]"
- else:
- set {_muted} to "%{_muted}% &7[&e%{mute::%{_uuid}%::msg}%&7]"
- if {%{_user}%.rank} is not set:
- set {_rank} to "default"
- else:
- set {_rank} to {%{_user}%.rank}
- send ""
- send "&6Status for &e%{_user}%:"
- send "&eHas joined server: %colored {_joined}%"
- send "&eIs banned: %colored {_detailsban}%"
- send "&eRank: &a%{_rank}%"
- send "&eIs muted: %colored {_muted}%"
- send ""
- command /punpurge <text>:
- permission: op
- trigger:
- if arg-1 is "$GINGHASTHEBIGRACIST":
- delete {tempban::*}
- delete {mute::*}
- send "&cPurged all tempban and mute histories."
- else:
- send "{@fake}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement