Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript by gamie0412#4763
- on join:
- if {firstjoined::%player's uuid%} is not set:
- set {rank::%player's uuid%} to "&8Default"
- set {default::%player's uuid%} to true
- execute console command "effect clear %player%"
- set {firstjoined::%player's uuid%} to false
- set {chatcolor::%player's uuid%} to "&7"
- set player's tablist name to "&8Default &e| &7%player%"
- execute console command "teleport %player% -777 59 1338"
- execute console command "nte player %player% prefix &8Default &7"
- add 1 to {joins}
- clear player's inventory
- clear player's enderchest
- wait 1 tick
- give player 16 bread
- wait 1 tick
- broadcast "&eWelcome %player% to &3Spell&bClash&e! You are our &6##%{joins}%th&e player!"
- stop
- command /start:
- trigger:
- send " "
- send " &3Spell&bClash &bHelp Message"
- send ""
- send "&bWelcome to &3Spell&bClash, &bAn unique, fun,"
- send "&band custom Magic server! With classes,"
- send "&bspells, bosses and much much more!"
- send " "
- command /setspawn:
- permission: admin.spawn.set
- permission message: Unknown command. Type "/help" for help.
- trigger:
- message "&aSpawn set!"
- set {spawn} to location of player
- set {spawnset} to true
- command /spawn:
- trigger:
- if {spawnset} is not set:
- message "&cA spawn hasn't been set! Use /setspawn!"
- stop
- if {spawnset} is false:
- message "&cA spawn hasn't been set! Use /setspawn!"
- stop
- if {spawnset} is true:
- teleport player to {spawn}
- options:
- HLine1: %nl%&8» &3Spell&bClash &8«
- HLine2: &7
- HLine3: &eIP &8➜ &cSpellClash.minehut.gg
- HLineC: &b&oAn unique magic server!
- xD: %nl%&8&m--------------------%nl%
- HLine4: &7
- FLine1: &7
- xD2: %nl%&8&m-------------------%nl%
- FLine2: &8•&8● &eDiscord &8➜ &7/Discord &8●&8•
- FLine3: &8•&8● &6%{players.online}%&b/&620 &8●&8•
- on respawn:
- wait 1 tick
- execute player command "/spawn"
- on craft:
- cancel event
- on join:
- loop all players:
- set {players.online} to number of all players
- set loop-player's tablist header to "{@HLine1} %nl%{@HLine3} %nl%{@HLineC}%nl%{@xD}"
- set loop-player's tablist footer to "{@xD2} %nl%{@FLine2} %nl%{@FLine3} %nl%"
- on first join:
- set player's tablist header to "{@HLine1} %nl%{@HLine3} %nl%{@xD}"
- set player's tablist footer to "{@xD2} %nl%{@FLine2} %nl%{@FLine3} %nl%"
- on quit:
- wait 1 second
- loop all players:
- set {players.online} to number of all players
- set loop-player's tablist header to "{@HLine1} %nl%{@HLine3} %nl%{@HLineC}%nl%{@xD}"
- set loop-player's tablist footer to "{@xD2} %nl%{@FLine2} %nl%{@FLine3} %nl%"
- options:
- permission: staff.chat
- staff-chat: &7[&cStaffChat&7]&b [PLAYER]&f: [MESSAGE]
- staff-chat-toggled: &2All your messages will now be sent to staff chat!
- staff-chat-untoggled: &4Your messages will no longer be sent to staff chat!
- function staffChat(p: player, m: string):
- set {_msg} to "{@staff-chat}"
- replace all "[PLAYER]" with "%{_p}%" in {_msg}
- replace all "[MESSAGE]" with colored {_m} in {_msg}
- send {_msg} to all players where [input has permission "{@permission}"]
- command /staffchat [<text>]:
- permission: {@permission}
- aliases: /sc, /s
- trigger:
- if arg-1 is not set:
- send "&c/staffchat (toggle | message)"
- stop
- if arg-1 is "toggle":
- if {staffchat::toggle::*} does not contain player:
- add player to {staffchat::toggle::*}
- send "&2All your messages will now be sent in staff chat!"
- else:
- remove player from {staffchat::toggle::*}
- send "&4You will no longer send messages in staff chat!"
- else:
- staffChat(player, arg-1)
- function hasStaffChatEnabled(p: player) :: boolean:
- return false if {_p} does not have permission "{@permission}"
- return false if {staffchat::toggle::*} does not contain {_p}
- return true
- on chat:
- if hasStaffChatEnabled(player) is true:
- staffChat(player, message)
- cancel event
- else if uncolored message starts with "##":
- player has permission "{@permission}"
- set {_r} to 1
- set {_r} to 2 if uncolored message starts with "## "
- set {_msg} to last (length of message - {_r}) characters of message
- cancel event
- staffChat(player, {_msg})
- command /chatmute:
- permission: admin.chat.mute
- trigger:
- if {chatmute} is not set:
- set {chatmute} to true
- broadcast "&4&lCHATMUTE &cThe chat got muted by &e%player%&c!"
- stop
- if {chatmute} is false:
- set {chatmute} to true
- broadcast "&4&lCHATMUTE &cThe chat got muted by &e%player%&c!"
- stop
- if {chatmute} is true:
- set {chatmute} to false
- broadcast "&4&lCHATMUTE &cThe chat got unmuted by &e%player%&c!"
- stop
- on chat:
- if {chatmute} is false:
- set chat format to "&7[%{rank::%player's uuid%}%&7] %player%: %{chatcolor::%player's uuid%}%%message%"
- if {chatmute} is not set:
- set chat format to "&7[%{rank::%player's uuid%}%&7] %player%: %{chatcolor::%player's uuid%}%%message%"
- if {chatmute} is true:
- if player has the permission "chatmute.talk":
- set chat format to "&7[%{rank::%player's uuid%}%&7] %player%: %{chatcolor::%player's uuid%}%%message%"
- else:
- cancel event
- message "&4&lCHATMUTE &cThe chat is muted!"
- on join:
- set join message to "&eWelcome &6%player% &eback to &3Spell&bClash&e!"
- on quit:
- set quit message to "&6%player% &ehas left &3Spell&bClash&e!"
- options:
- vanish-message: &3(VANISH) &c[PLAYER] &7is now vanished!
- unvanish-message: &3(VANISH) &c[PLAYER] &7is no longer vanished!
- function checkVanished(player: player) :: boolean:
- set {_u} to uuid of {_player}
- if {vanish::%{_u}%} is set:
- return true
- else:
- return false
- on quit:
- if checkVanished(player) is true:
- set quit message to ""
- on join:
- hide (all players where [checkVanished(input) is true]) from all players where [input does not have permission "staff.vanish"]
- if checkVanished(player) is true:
- set join message to ""
- while {vanish::%uuid of player%} is true:
- send action bar "&2You are currently invisible!" to player
- wait a second
- command /vanish:
- permission: staff.vanish
- trigger:
- if {vanish::%uuid of player%} is not set:
- set {vanish::%uuid of player%} to true
- hide player from all players where [input does not have permission "staff.vanish"]
- set {_msg} to "{@vanish-message}"
- replace all "[PLAYER]" with "%player%" in {_msg}
- send {_msg} to all players where [input has permission "staff.vanish"]
- send "&2You are now vanished!"
- broadcast "&6%player% &ehas left &3Spell&bClash&e!"
- while {vanish::%uuid of player%} is true:
- send action bar "&2You are currently invisible!" to player
- wait a second
- else:
- clear {vanish::%uuid of player%}
- reveal player to all players
- set {_msg} to "{@unvanish-message}"
- replace all "[PLAYER]" with "%player%" in {_msg}
- send {_msg} to all players where [input has permission "staff.vanish"]
- send "&cYou are no longer vanished!"
- send action bar "&cYou are no longer invisible!" to player
- broadcast "&eWelcome &6%player% &eback to &3Spell&bClash&e!"
- wait a second
- send action bar "" to player
- command /v:
- permission: staff.vanish
- trigger:
- if {vanish::%uuid of player%} is not set:
- set {vanish::%uuid of player%} to true
- hide player from all players where [input does not have permission "staff.vanish"]
- set {_msg} to "{@vanish-message}"
- replace all "[PLAYER]" with "%player%" in {_msg}
- send {_msg} to all players where [input has permission "staff.vanish"]
- send "&2You are now vanished!"
- broadcast "&6%player% &ehas left &3Spell&bClash&e!"
- while {vanish::%uuid of player%} is true:
- send action bar "&2You are currently invisible!" to player
- wait a second
- else:
- clear {vanish::%uuid of player%}
- reveal player to all players
- set {_msg} to "{@unvanish-message}"
- replace all "[PLAYER]" with "%player%" in {_msg}
- send {_msg} to all players where [input has permission "staff.vanish"]
- send "&cYou are no longer vanished!"
- send action bar "&cYou are no longer invisible!" to player
- broadcast "&eWelcome &6%player% &eback to &3Spell&bClash&e!"
- wait a second
- send action bar "" to player
- command /color [<player>]:
- permission: grant.color
- trigger:
- if arg-1 is set:
- open virtual chest inventory with size 5 named "&6Color &e%arg-1%" to player
- format gui slot 0 and 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 17 and 18 and 26 and 27 and 35 and 36 and 37 and 38 and 39 and 40 and 41 and 42 and 43 and 44 of player with red stained glass pane named "&4&l*"
- format gui slot 10 of player with cyan wool named "&3Cyan" with lore "&6Grant %arg-1% with the color &3Cyan" to close then execute console command "/cgrant %arg-1% &3"
- format gui slot 12 of player with blue wool named "&1Blue" with lore "&6Grant %arg-1% with the color &2Blue" to close then execute console command "/cgrant %arg-1% &2"
- format gui slot 14 of player with pink wool named "&dPink" with lore "&6Grant %arg-1% with the color &dPink" to close then execute console command "/cgrant %arg-1% &d"
- format gui slot 16 of player with white wool named "&fWhite" with lore "&6Grant %arg-1% with the color &fWhite" to close then execute console command "/cgrant %arg-1% &f"
- format gui slot 28 of player with light gray wool named "&7Gray" with lore "&6Grant %arg-1% with the color &7Gray" to close then execute console command "/cgrant %arg-1% &7"
- format gui slot 30 of player with lime wool named "&aLime" with lore "&6Grant %arg-1% with the color &aLime" to close then execute console command "/cgrant %arg-1% &a"
- format gui slot 32 of player with light blue wool named "&bLight Blue" with lore "&6Grant %arg-1% with the color &bLight Blue" to close then execute console command "/cgrant %arg-1% &b"
- if arg-1 is not set:
- message "&cYou need to insert a player name!"
- command /cgrant [<player>] [<text>]:
- permission: grant.color
- trigger:
- set {chatcolor::%arg-1's uuid%} to "%arg-2%"
- command /setrank <player> <text>:
- permission: owner.rank.set
- trigger:
- if arg-1 and arg-2 is set:
- if arg-2 is "Owner":
- set {rank::%arg-1's uuid%} to "&4Owner"
- set {chatcolor::%arg-1's uuid%} to "&f"
- set arg-1's tablist name to "&4Owner &e| &f%arg-1%"
- execute console command "manuadd %arg-1% Owner"
- execute console command "nte player %arg-1% prefix &4Owner &f"
- set {owner::%arg-1's uuid%} to true
- set {guardIII::%arg-1's uuid%} to false
- set {builder::%arg-1's uuid%} to false
- set {developer::%arg-1's uuid%} to false
- set {moderator::%arg-1's uuid%} to false
- set {admin::%arg-1's uuid%} to false
- set {headguard::%arg-1's uuid%} to false
- set {guardII::%arg-1's uuid%} to false
- set {guardI::%arg-1's uuid%} to false
- set {default::%arg-1's uuid%} to false
- set {donator::%arg-1's uuid%} to false
- if arg-2 is "Builder":
- set {rank::%arg-1's uuid%} to "&aBuilder"
- set {chatcolor::%arg-1's uuid%} to "&f"
- set arg-1's tablist name to "&aBuilder &e| &f%arg-1%"
- set {builder::%arg-1's uuid%} to true
- execute console command "manuadd %arg-1% Builder"
- execute console command "nte player %arg-1% prefix &aBuilder &f"
- set {owner::%arg-1's uuid%} to false
- set {guardIII::%arg-1's uuid%} to false
- set {developer::%arg-1's uuid%} to false
- set {moderator::%arg-1's uuid%} to false
- set {admin::%arg-1's uuid%} to false
- set {headguard::%arg-1's uuid%} to false
- set {guardII::%arg-1's uuid%} to false
- set {guardI::%arg-1's uuid%} to false
- set {default::%arg-1's uuid%} to false
- set {donator::%arg-1's uuid%} to false
- if arg-2 is "Developer":
- set {rank::%arg-1's uuid%} to "&bDeveloper"
- set {chatcolor::%arg-1's uuid%} to "&f"
- set arg-1's tablist name to "&bDeveloper &e| &f%arg-1%"
- set {developer::%arg-1's uuid%} to true
- execute console command "manuadd %arg-1% Developer"
- execute console command "nte player %arg-1% prefix &bDeveloper &f"
- set {owner::%arg-1's uuid%} to false
- set {builder::%arg-1's uuid%} to false
- set {guardIII::%arg-1's uuid%} to false
- set {moderator::%arg-1's uuid%} to false
- set {admin::%arg-1's uuid%} to false
- set {headguard::%arg-1's uuid%} to false
- set {guardII::%arg-1's uuid%} to false
- set {guardI::%arg-1's uuid%} to false
- set {default::%arg-1's uuid%} to false
- set {donator::%arg-1's uuid%} to false
- if arg-2 is "Moderator":
- set {rank::%arg-1's uuid%} to "&cModerator"
- set {chatcolor::%arg-1's uuid%} to "&f"
- set arg-1's tablist name to "&cModerator &e| &f%arg-1%"
- set {moderator::%arg-1's uuid%} to true
- execute console command "manuadd %arg-1% Moderator"
- execute console command "nte player %arg-1% prefix &cModerator &f"
- set {owner::%arg-1's uuid%} to false
- set {builder::%arg-1's uuid%} to false
- set {developer::%arg-1's uuid%} to false
- set {guardIII::%arg-1's uuid%} to false
- set {admin::%arg-1's uuid%} to false
- set {headguard::%arg-1's uuid%} to false
- set {guardII::%arg-1's uuid%} to false
- set {guardI::%arg-1's uuid%} to false
- set {default::%arg-1's uuid%} to false
- set {donator::%arg-1's uuid%} to false
- if arg-2 is "Admin":
- set {rank::%arg-1's uuid%} to "&9Admin"
- set {chatcolor::%arg-1's uuid%} to "&f"
- set arg-1's tablist name to "&9Admin &e| &f%arg-1%"
- set {admin::%arg-1's uuid%} to true
- execute console command "manuadd %arg-1% Admin"
- execute console command "nte player %arg-1% prefix &9Admin &f"
- set {owner::%arg-1's uuid%} to false
- set {builder::%arg-1's uuid%} to false
- set {developer::%arg-1's uuid%} to false
- set {moderator::%arg-1's uuid%} to false
- set {guardIII::%arg-1's uuid%} to false
- set {headguard::%arg-1's uuid%} to false
- set {guardII::%arg-1's uuid%} to false
- set {guardI::%arg-1's uuid%} to false
- set {default::%arg-1's uuid%} to false
- set {donator::%arg-1's uuid%} to false
- if arg-2 is "Donator":
- set {rank::%arg-1's uuid%} to "&eDonator"
- set {chatcolor::%arg-1's uuid%} to "&d"
- set arg-1's tablist name to "&eDonator &e| &7%arg-1%"
- set {donator::%arg-1's uuid%} to true
- on join:
- if {owner::%player's uuid%} is true:
- set player's tablist name to "&4Owner &e| &f%player%"
- if {builder::%player's uuid%} is true:
- set player's tablist name to "&aBuilder &e| &f%player%"
- if {developer::%player's uuid%} is true:
- set player's tablist name to "&bDeveloper &e| &f%player%"
- if {moderator::%player's uuid%} is true:
- set player's tablist name to "&cModerator &e| &f%player%"
- if {admin::%player's uuid%} is true:
- set player's tablist name to "&9Admin &e| &f%player%"
- if {donator::%player's uuid%} is true:
- set player's tablist name to "&eDonator &e| &7%player%"
- if {default::%player's uuid%} is true:
- set player's tablist name to "&8Default &e| &7%player%"
- command /ranks:
- permission: rank.list
- trigger:
- message "&cRanks list:"
- message "&4Owner"
- message "&bDeveloper"
- message "&9Admin"
- message "&cModerator"
- message "&aBuilder"
- message "&eDonator"
- message "&7Default"
- command /reset <player>:
- permission: reset.*
- trigger:
- delete {firstjoined::%arg-1's uuid%}
- delete {rank::%arg-1's uuid%}
- delete {namecolor::%arg-1's uuid%}
- delete {chatcolor::%arg-1's uuid%}
- delete {firstjoined::%arg-1's uuid%}
- delete {rankcolor::%arg-1's uuid%}
- command /resetall:
- permission: reset.*
- trigger:
- delete {firstjoined::*}
- delete {rank::*}
- delete {namecolor::*}
- delete {chatcolor::*}
- delete {firstjoined::*}
- delete {rankcolor::*}
- delete {joins}
- command /plugins:
- trigger:
- message "Plugins (4): &aNone&f, &aOf&f, &aYour&f, &aBusiness"
- command /pl:
- trigger:
- message "Plugins (4): &aNone&f, &aOf&f, &aYour&f, &aBusiness"
- command /rename <text>:
- description: Renames the item in your inventory slot.
- usage: /rename <name>
- permission: owner.rename
- permission message: &cYou do not have permission to this command.
- trigger:
- if arg-1 is set:
- set the name of player's tool to "&r%colored arg-1%"
- send "&fYour items name has been changed to &r%colored arg-1%&r."
- command /relore [<integer=1>] [<text="">]:
- aliases: lore
- permission: owner.relore
- permission message: &6&lPick&e&llocked&7&l> &fYou dont have access to this command.
- trigger:
- if arg-2 is set:
- set line arg-1 of the lore of player's tool to "&d&o%colored arg-2%"
- send "&fYour items lore has been changed to &r%colored arg-2%&r."
- command /broadcast <text>:
- permission: admin.broadcast
- permission message: &cYou have no permission for this command!
- trigger:
- broadcast "&3Spell&bClash &8>>&r %coloured arg-1%"
- stop
- command /bc <text>:
- permission: admin.broadcast
- permission message: &cYou have no permission for this command!
- trigger:
- broadcast "&3Spell&bClash &8>>&r %coloured arg-1%"
- stop
- command /rules:
- trigger:
- message " "
- message " &3Spell&bClash "
- message " &b&oServer Rules "
- message " "
- message "&e1&6)&f Hacks are not allowed"
- message "&e2&6)&f Spamming is not allowed"
- message "&e3&6)&f Teaming is allowed"
- message "&e4&6)&f Don't swear too much"
- message "&e5&6)&f No 18+ content"
- message " "
- command /discord:
- trigger:
- send "<link:https://discord.gg/FM6nbWsE3N>&9Click here for our discord!"
- command /clearchat:
- permission: admin.clearchat
- permission message: Unknown command. Type "/help" for help.
- trigger:
- loop 300 times:
- broadcast " "
- wait 2 ticks
- broadcast "&3Spell&bClash &8>> &cChat has been cleared by &e%player%&c!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement