Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &3[Spotix]&b
- #
- # Admin Commands
- #
- command /gm [<text>]:
- trigger:
- if player has permission "essentials.gm":
- if arg-1 is "c":
- set player's gamemode to creative
- send "{@Prefix} Gamemode set to creative."
- if arg-1 is "s":
- set player's gamemode to survival
- send "{@Prefix} Gamemode set to survival."
- if arg-1 is "sp":
- set player's gamemode to spectator
- send "{@Prefix} Gamemode set to spectator."
- if arg-1 is "a":
- set player's gamemode to adventure
- send "{@Prefix} Gamemode set to adventure."
- else:
- send "{@Prefix} You do not have the permission."
- command /fly:
- trigger:
- if player has permission "essentials.fly":
- if {essentials.fly::%player's uuid%} is not set:
- set {essentials.fly::%player's uuid%} to true
- else if {essentials.fly::%player's uuid%} is false:
- set player's flight mode to true
- send "{@Prefix} Flight mode is now on."
- set {essentials.fly::%player's uuid%} to true
- else if {essentials.fly::%player's uuid%} is true:
- set player's flight mode to false
- send "{@Prefix} Flight mode is now off."
- set {essentials.fly::%player's uuid%} to false
- else:
- send "{@Prefix} You do not have the permission."
- command /setspawn:
- permission: rank.admin
- trigger:
- set {spawn} to location of player
- send "&3[Admin] &bSpawn successfully set!"
- command /team [<offlineplayer>] [<text>]:
- permission: rank.admin
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if arg 2 is "Blue":
- set {rank.%UUID of arg 1%} to "Blue"
- send "&3%arg 1%'s &bteam has been changed to &9Blue"
- send "&bYour team has been changed to &9Blue" to arg 1
- set arg 1 tab name to "&9&lBlue &8| &9%arg 1%"
- if arg 2 is "Pink":
- set {rank.%UUID of arg 1%} to "Pink"
- send "&3%arg 1%'s &bteam has been changed to &dPink"
- send "&bYour team has been changed to &dPink" to arg 1
- set arg 1 tab name to "&d&lPink &8| &d%arg 1%"
- if arg 2 is "Yellow":
- set {rank.%UUID of arg 1%} to "Yellow"
- send "&3%arg 1%'s &bteam has been changed to &eYellow"
- send "&bYour team has been changed to &eYellow" to arg 1
- set arg 1 tab name to "&e&lYellow &8| &e%arg 1%"
- if arg 2 is "Purple":
- set {rank.%UUID of arg 1%} to "Purple"
- send "&3%arg 1%'s &bteam has been changed to &5Purple"
- send "&bYour team has been changed to &5Purple" to arg 1
- set arg 1 tab name to "&5&lPurple &8| &5%arg 1%"
- if arg 2 is "Default":
- set {rank.%UUID of arg 1%} to "Default"
- send "&3%arg 1%'s &bteam has been changed to &7Default"
- send "&bYour team has been changed to &7Default" to arg 1
- set arg 1 tab name to "&7%arg 1%"
- else:
- send "&c/team %arg 1% <team>"
- else:
- send "&c/team <player> <team>"
- on load:
- loop all players:
- if loop-player is op:
- send "{@Prefix} Skript Reloaded" to loop-players
- command /broadcast [<text>]:
- permission: bc
- trigger:
- if arg-1 is set:
- broadcast "{@Prefix} %colored arg-1%"
- else:
- send "{@Prefix} Enter a message to broadcast."
- command /day:
- trigger:
- if {vote.%player's uuid%} is not set:
- if time in world is night:
- add 1 to {votes}
- set {vote.%player's uuid%} to true
- send "{@Prefix} You have voted for day."
- else:
- send "{@Prefix} It is not night time!"
- else:
- send "{@Prefix} You have already voted."
- every 5 seconds:
- set {players} to amount of players in world "world"
- set {neededvotes} to {players}/2
- if {votes} is greater than or equal to {neededvotes}:
- console command "time set day"
- broadcast "{@Prefix} Time has been set to day with %{votes}% votes."
- delete {votes}
- loop all players:
- delete {vote.%loop-player's uuid%}
- #
- # Default Commands
- #
- command /stats [<offlineplayer>]:
- trigger:
- if arg 1 is not set:
- send "&8&m-------------------"
- send "&3%player%&b's stats"
- send ""
- send "&bTeam: %{rank.%UUID of player%}%"
- send "&bDiamonds: &a%{diamond.%player's uuid%}%"
- send "&bGold: &a%{gold.%player's uuid%}%"
- send "&bIron: &a%{iron.%player's uuid%}%"
- send "&bCoal: &a%{coal.%player's uuid%}%"
- send ""
- send "&8&m-------------------"
- if arg 1 is set:
- send "&8&m-------------------"
- send "&3%arg 1%&b's stats"
- send ""
- send "&bDiamonds: &a%{diamond.%arg-1's uuid%}%"
- send "&bGold: &a%{gold.%arg-1's uuid%}%"
- send "&bIron: &a%{iron.%arg-1's uuid%}%"
- send "&bCoal: &a%{coal.%arg-1's uuid%}%"
- send ""
- send "&8&m-------------------"
- command /spawn:
- trigger:
- teleport player to {spawn}
- command /sethome:
- trigger:
- set {home.%player%} to location of player
- send "&3[Spotix] &bYour home has been set!"
- command /home:
- trigger:
- if {home.%player%} is not set:
- send "&3[Spotix] &bYou &cdon't &bhave a home set!"
- else:
- teleport player to {home.%player%}
- send "&3[Spotix] &bYou've made it home."
- on join:
- if {diamond.%player's uuid%} is not set:
- set {diamond.%player's uuid%} to 0
- if {gold.%player's uuid%} is not set:
- set {gold.%player's uuid%} to 0
- if {iron.%player's uuid%} is not set:
- set {iron.%player's uuid%} to 0
- if {coal.%player's uuid%} is not set:
- set {coal.%player's uuid%} to 0
- command /setstats <offlineplayer> <text> <integer>:
- usage: {@Prefix} Usage: /setstats <player> <stat> <number>
- permission: stats
- trigger:
- set {%arg-2%.%arg-1's uuid%} to arg-3
- send "Stat: %arg-2% of %arg-1% is now %arg-3%"
- command /tpa [<player>]:
- trigger:
- if arg-1 is set:
- set {request.%arg-1's uuid%} to executor
- send "{@Prefix} You have sent %arg-1% a TPA request."
- send "{@Prefix} %executor% has sent you a TPA request [/tpaccept]." to arg-1
- else:
- send "{@Prefix} Enter a player."
- command /tpaccept:
- trigger:
- if {request.%player's uuid%} is set:
- teleport {request.%player's uuid%} to executor
- send "{@Prefix} Teleporting..."
- send "{@Prefix} Teleporting..." to {request.%player's uuid%}
- wait 3 ticks
- delete {request.%player's uuid%}
- else:
- send "{@Prefix} You do not have a pending request."
- command /rtp:
- aliases: wild
- trigger:
- if {cooldown.%player's uuid%} is not set:
- console command "spreadplayers ~ ~ 100 1000 false %player%"
- send "{@Prefix} Teleported randomly."
- set {cooldown.%player's uuid%} to 60
- loop 60 times:
- remove 1 from {cooldown.%player's uuid%}
- wait 1 second
- if {cooldown.%player's uuid%} is 0:
- delete {cooldown.%player's uuid%}
- else:
- send "{@Prefix} Command on cooldown. %{cooldown.%player's uuid%}%."
Advertisement
Add Comment
Please, Sign In to add comment