Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # game.sk
- command /debug:
- permission: admin.only
- trigger:
- teleport {ingame::*} to spawn
- set {queue.1} to false
- set {queue.2} to false
- delete {1::player's uuid}
- delete {2::player's uuid}
- delete {1::player}
- delete {2::player}
- clear {ingame::*}
- send "done"
- command /queue:
- trigger:
- if {queue.1} is false:
- set {queue.1} to true
- set {1::player's uuid} to player's uuid
- set {1::player} to player
- add player to {ingame::*}
- send "&b&lGAME &7You are now in the queue [1/2]"
- else if {queue.1} is true:
- if {queue.2} is false:
- set {queue.2} to true
- set {2::player's uuid} to player's uuid
- set {2::player} to player
- add player to {ingame::*}
- send "&b&lGAME &7You are now in the queue [2/2]"
- console command "game::start"
- else if {queue.1} is true:
- if {queue.2} is true:
- send "&b&lGAME &7The game is full!"
- command /game::start:
- executable by: console
- trigger:
- broadcast "&b&lGAME &7Game Starting..."
- teleport {1::player} to {loc1}
- teleport {2::player} to {loc2}
- equip {1::player} with unbreakable iron boots
- equip {2::player} with unbreakable iron boots
- equip {1::player} with unbreakable iron leggings
- equip {2::player} with unbreakable iron leggings
- equip {1::player} with unbreakable iron chestplate
- equip {2::player} with unbreakable iron chestplate
- equip {1::player} with unbreakable iron helmet
- equip {2::player} with unbreakable iron helmet
- give 1 diamond sword to {1::player}
- give 1 diamond sword to {2::player}
- on death:
- if {ingame::*} contains attacker:
- if {ingame::*} contains victim:
- broadcast "&b&lDUELSGG &6%attacker% &7has won against &6%victim%&7."
- add 1 to {stats::won::%attacker's uuid%}
- add 5 to {coins::%attacker's uuid%}
- add 1 to {stats::lost::%victim's uuid%}
- add 1 to {stats::played::%attacker's uuid%}
- add 1 to {stats::played::%victim's uuid%}
- force the victim to respawn
- teleport victim to {spawn}
- teleport attacker to {spawn}
- set {queue.1} to false
- set {queue.2} to false
- delete {1::player's uuid}
- delete {2::player's uuid}
- delete {1::player}
- delete {2::player}
- clear {ingame::*}
- # core
- every second:
- add 1 to {sec}
- if {sec} is 60:
- set {sec} to 0
- add 1 to {min}
- if {min} is 60:
- set {min} to 0
- add 1 to {hour}
- if {hour} is 24:
- add 1 to {day}
- loop all players:
- set loop-player's tablist name to the displayname of loop-player
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&b&lDUELSGG"
- set score "&c" in sidebar of loop-player to 6
- set score "&6Online: &9%number of all players%" in sidebar of loop-player to 5
- set score "&b/stats" in sidebar of loop-player to 4
- set score "&6Coins: &9%{coins::%loop-player's uuid%}%" in sidebar of loop-player to 3
- set score "&a" in sidebar of loop-player to 2
- set score "&7officialgame.ga" in sidebar of loop-player to 1
- every second:
- loop all players:
- if {stats::played::%loop-player's uuid%} is not set:
- set {stats::played::%loop-player's uuid%} to 0
- if {stats::won::%loop-player's uuid%} is not set:
- set {stats::won::%loop-player's uuid%} to 0
- if {stats::lost::%loop-player's uuid%} is not set:
- set {stats::lost::%loop-player's uuid%} to 0
- on skript load:
- set {sec} to 0
- set {min} to 0
- set {hour} to 0
- on first join:
- add 1 to {joins}
- add player's uuid to {joins::*}
- wait 2 ticks
- send "&bWelcome to DEULSGG, by Kingdoms.gg"
- broadcast "&b[+] %player% &e[##%{joins}%]"
- on join:
- if {joins::*} does not contain player's uuid:
- add player's uuid to {joins::*}
- send "&bWelcome to DUELSGG, by Kingdoms.gg"
- broadcast "&b[+] %player%"
- teleport player to {spawn}
- command /help:
- trigger:
- send "&b&lDUELSGG - Help"
- send "&e/stats [<player>] &7See your or another player's duel stats."
- send "&e/info &7See the servers info."
- command /stats [<offline player>]:
- trigger:
- if arg-1 is not set:
- send "&b&LDUELSGG - Your Stats"
- send "&eGames Played: &7%{stats::played::%player's uuid%}%"
- send "&eGames Won: &7%{stats::won::%player's uuid%}%"
- send "&eGames Lost: &7%{stats::lost::%player's uuid%}%"
- else if arg-1 is set:
- if {joins::*} does not contain player's uuid:
- send "&b&LDUELSGG &7That player has not joined before!"
- else:
- send "&b&LDUELSGG - %arg-1%'s Stats"
- send "&eGames Played: &7%{stats::played::%arg-1's uuid%}%"
- send "&eGames Won: &7%{stats::won::%arg-1's uuid%}%"
- send "&eGames Lost: &7%{stats::lost::%arg-1's uuid%}%"
- command /info:
- trigger:
- send "&b&lDUELSGG - Server Info"
- send "&eVersion: &7%{server::version}%"
- if {day} is greater than 0:
- send "&eUptime: &7%{sec}% seconds, %{min}% minutes, %{hour}% hours, %{day}% days."
- else:
- send "&eUptime: &7%{sec}% seconds, %{min}% minutes, %{hour}% hours."
- command /admin [<text>] [<text>]:
- permission: admin.main
- permission message: &cNo Perm.
- trigger:
- if arg-1 is not set:
- send "&b&lDUELSGG &7You can use ""/admin help"" for commands"
- else if arg-1 is "help":
- send "&b&lDUELSGG - Admin Commands"
- send "&b/admin setversion <version>"
- send "&b/admin setspawn"
- else if arg-1 is "setversion":
- if arg-2 is set:
- set {server::version} to arg-2
- send "&b&lDUELSGG &7New version has beeen set."
- else:
- send "&b&lDUELSGG - 7Enter a new version."
- else if arg-1 is "setspawn":
- set {spawn} to location of player
- send "&b&lDUELSGG &7New spawn has beeen set."
- on chat:
- cancel event
- broadcast "&3[%{coins::%player's uuid%}%] &f%displayname of player%&7: %message%"
- command /spawn:
- trigger:
- teleport player to {spawn}
- send "&b&lDUELSGG &7Teleporting to spawn."
- command /suggest [<text>]:
- trigger:
- if arg-1 is not set:
- send "&b&lDUELSGG &7Please enter your suggestion!"
- else:
- add " - &9%player% &6| &f%arg-1% - " to {suggestions::*}
- send "&b&lDUELSGG &7Added!"
- command /suggestions [<text>]:
- permission: s.clear
- permission message: &cNo perm.
- trigger:
- if arg-1 is not set:
- send "%{suggestions::*}%"
- else if arg-1 is "clear":
- clear {suggestions::*}
- command /staffchat [<text>]:
- permission: staff.chat
- permission message: &cNo perm.
- aliases: sc
- trigger:
- if arg-1 is not set:
- send "&b&lDUELSGG &7Please enter your message!"
- else:
- loop all players:
- if loop-player has the permission "staff.chat":
- send "&c&l[SC] %displayname of executor%: &f%arg-1%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment