Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CRACK SKYWARS compatible for 1.8+ servers
- options:
- v: 0.1
- author: Joonthan
- # ● SETTINGS ●
- prefix: &b&l[&l&6SW&b&l] #you may edit this
- sbname: &e&lSKY WARS
- bowdamagemessage: true
- nocmd: "nick" or "vanish"
- # Min-Max players
- minplayerssolo: 2
- maxplayerssolo: 12
- minplayersteams: 4
- maxplayersteams: 24
- # Timers
- cagetimesolo: 15
- starttimeteams: 15
- cagetimeteams: 10
- refill1min: 3
- refill1sec: 30
- refill2min: 2
- refill2sec: 0
- doomtmin: 2
- doomsec: 0
- endmin: 2
- endsec: 0
- # Chat
- normchat: %colored player's prefix% %player%&f: %message%
- specchat: &7[SPECTATOR]&r %colored player's prefix% %player%&f: %message%
- # Points
- killcoins: 100
- assistcoins: 50
- wincoins: 1000
- soulskill: 1;/'['
- soulsassist: 0
- soulswin: 5
- # ● GAME EVENTS ●
- Starting: Starting in
- startingevent: Waiting...
- refill: Refill
- gamedoom: Doom
- gameend: Game End
- gameended: Game ended!
- # ● SCOREBOARD ●
- website: &espigot.org
- boardname: &e&lSKYWARS
- # //lobby
- lobbybl14: &r&r&r&r
- lobbybl13: &fYour Level:&r
- lobbybl12: &r&r&r
- lobbybl11: &fSolo Kills:&a
- lobbybl10: &fSolo Wins:&a
- lobbybl9: &fDoubles Kills:&a
- lobbybl8: &fDoubles Wins:&a
- lobbybl7: &r&r
- lobbybl6: &fCoins: &6
- lobbybl5: &fSouls: &7/100
- lobbybl4: &fTokens:&2
- lobbybl3: &fLoot Chests: &e
- lobbybl2: &r
- lobbybl1: {@website}
- # //solo pre
- solopre10: &7%now% Solo
- solopre9: &r&r&r&r
- solopre8: &fPlayers: &a/12
- solopre7: &r&r&r
- solopre6: &fStarting in&a s
- solopre5: &r&r
- solopre4: &fMap:&a
- solopre3: &fMode:&a
- solopre2: &r
- solopre1: {@website}
- # //solo
- solo13: &7%now% Solo
- solo12: &r&r&r&r
- solo11: &fNext Event:&r
- solo10: &a
- solo9: &r&r&r&r
- solo8: &fPlayers left:&a
- solo7: &r&r&r
- solo6: &fKills:&a
- solo5: &r&r
- solo4: &fMap:&a
- solo3: &fMode:&a
- solo2: &r
- solo1: {@website}
- # ● TITLES ●
- title10: &e10 seconds
- sub10: &eRight-click the bow to pick a kit!
- sub: &ePrepare to fight!
- game: &eSkyWars
- normalsub: &aNormal
- insanesub: &cInsane
- preparesub: &ePrepare to fight!
- victorytitle: &l&6VICTORY!
- victorysub: &7You were the last man standing!
- diedtitle: &c&lYOU DIED!
- diedsub: &7You are now a spectator!
- refill: &eAll chest have been refilled!
- 5minremain: &a5&e minutes remaining!
- doom: &cSudden Death
- gameendtitle: &c&lGAME END
- gameendsub: &7You weren't victorious this time
- title1: &c1
- title2: &c2
- title3: &c3
- title4: &c4
- title5: &c5
- # ● MESSAGES ●
- permmsg: &aCrack Skywars plugin made by {@author}, version {@v}
- voiddeath: &7%victim%&e fell into the void&e.
- falldeath: &7%victim%&e fell from a high place&e.
- lavadeath: &7%victim%&e burned to crisp&e.
- drowndeath: &7%victim%&e drowned.
- leavedeath: &7%player% &eleft!
- voidattackdeath: &7%victim%&e was thrown into the void by &7%{attacker.%victim%}%&e.
- fallattackdeath: &7%victim%&e was thrown off a high cliff by &7%{attacker.%victim%}%&e.
- lavaattackdeath: &7%victim%&e burned to death while fighting &7%{attacker.%victim%}%&e.
- joinmsglobby: &r
- leavemessagelobby: &r
- joinmsgsolo: &7%player% &ehas joined (&b&e/12&e)!
- leavemsgpre: &7%player% &ehas quit!
- joinmsggame: &r
- nosettingchange: {@prefix} &cYou may not change any settings while playing!
- noarenaname: {@prefix} &cPlease provide an arena name!
- nomodename: {@prefix} &cPlease provide a mode! Availible modes: SOLO_NORMAL, SOLO_INSANE, TEAM_NORMAL, TEAM_INSANE
- gameactive: {@prefix} &cYou cannot make changes to an active arena!
- arenanotexist: {@prefix} &cThat arena does not exist!
- addedspawn: {@prefix} &aSuccesfully added a spawn location!
- removedspawn: {@prefix} &aSuccesfully removes a spawn location!
- maxspawns: {@prefix} &cYou have reached the max amount of spawns!
- foundnocage: {@prefix} &cThere are no cages!
- cenlocset: {@prefix} &aSuccesfully set the center location!
- highset: {@prefix} &aHigh Bound location succesfully set!
- lowset: {@prefix} &aLOw Bound location succesfully set!
- saved: {@prefix} &aSuccesfully saved the arena!
- cenlocnotset: {@pefix} &cPlease set the center location first!
- highlocnotset: {@prefix} &cPlease set the high bound location!
- lowlocnotset: {@prefix} &cPlease set the low bound location!
- modenotset: {@prefix} &cPlease set the mode first!
- # \\ GAME CODE // !! DO NOT CHANGE !!
- on load:
- if {arena.amounts} is not set:
- set {arena.amounts} to 0
- send "&e&l&m---------------->> &c&lCRACK SKYWARS &e&l&m<<----------------" to console
- send " " to console
- send "&aLoading v{@v}&a..." to console
- send "&aLoaded %{arena.amounts}% &agames!" to console
- send "&aCrack Skywars succesfully enabled!" to console
- send " " to console
- send "&e&l&m---------------->> &c&lCRACK SKYWARS &e&l&m<<----------------" to console
- on unload:
- send "&e&l&m---------------->> &c&lCRACK SKYWARS &e&l&m<<----------------" to console
- send " " to console
- send "&cDisabling Crack Skywars..." to console
- send "&cCrack Skywars succesfully disabled!" to console
- send " " to console
- send "&e&l&m---------------->> &c&lCRACK SKYWARS &e&l&m<<----------------" to console
- command /skywars [<text>] [<text>] [<text>]:
- aliases: /sw
- executable by: players
- trigger:
- if executor does not have permission "sw.admin":
- send "{@permmsg}" to player
- stop
- if executor has permission "sw.admin":
- if arg-1 is not set:
- helpList(player)
- if arg-1 is set:
- if arg-1 is not "setLobby", "create", "delete", "addSpawn", "deleteSpawn", "center", "setHigh", "setLow", "save" or "checkStats":
- helpList(player)
- stop
- if arg-1 is "setlobby":
- set {swlobby} to location of executor
- send "{@prefix} &aThe lobby location was succesfully set!"
- stop
- # !! CREATING A NEW ARENA !!
- if arg-1 is "create":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if arg-3 is "SOLO_NORMAL", "SOLO_INSANE", "TEAM_NORMAL" or "TEAM_INSANE":
- add text arg-2 to {sw.arena::*}
- set {sw.arena.%arg-2%.joinable} to false
- set {sw.arena.%arg-2%.exists} to true
- set {sw.arena.%arg-2%.created} to true
- set {sw.arena.%arg-2%.saved} to false
- set {sw.arena.%arg-2%.spawns.count} to 0
- set {sw.arena.%arg-2%.mode} to "%arg-3%"
- else:
- send "{@nomodename}"
- stop
- else:
- send "{@nomodename}"
- stop
- else:
- send "{@noarenaname}"
- stop
- # !! DELETING A ARENA !!
- if arg-1 is "delete":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- remove text arg-2 from {sw.arena::*}
- clear {sw.arena.%arg-2%.joinable}
- clear {sw.arena.%arg-2%.created}
- clear {sw.arena.%arg-2%.saved}
- clear {sw.arena.%arg-2%.spawns.count}
- clear {sw.arena.%arg-2%.mode}
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@noarenaname}"
- # !! ADDING A CAGE SPAWNS
- if arg-1 is "addSpawn":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- if {sw.arena.%arg-2%.cage.count} = 0:
- add 1 to {sw.arena.%arg-2%.cage.count}
- set {sw.arena.%arg-2%.spawn.num.%{sw.arena.%arg-2%.cage.count}%} to location of player
- send "{@addedspawn}"
- else:
- if {sw.arena.%arg-2%.cage.count} >= 1 :
- add 1 to {sw.arena.%arg-2%.cage.count}
- set {sw.arena.%arg-2%.spawn.num.%{sw.arena.%arg-2%.cage.count}%} to location of player
- send "{@addedspawn}"
- if {sw.arena.%arg-2%.cage.count} > {@maxplayerssolo}:
- clear {sw.arena.%arg-2%.spawn.num.%{sw.arena.%arg-2%.cage.count}%}
- remove 1 from {sw.arena.%arg-2%.cage.count}
- send "{@maxspawns}"
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@noarenaname}"
- # !! REMOVING A CAGE SPAWN !!
- if arg-1 is "deleteSpawn":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- if {sw.arena.%arg-2%cage.count} > 1:
- clear {sw.arena.%arg-2%.spawn.num.%{sw.arena.%arg-2%.cage.count}%}
- remove 1 from {sw.arena.%arg-2%.cage.count}
- send "{@removedspawn}"
- else:
- if {sw.arena.%arg-2%.cage.count} = 0:
- send "{@foundnocage}"
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@noarenaname}"
- # !! SETTING CENTER POINT FOR AN ARENA !!
- if arg-1 is "center":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- set {sw.arena.%arg-2%.center.loc} to location of player
- send "{@cenlocset}"
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@noarenaname}"
- # !! SETTING THE HIGH BOUND LOCATION !!
- if arg-1 is "setHigh":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- set {sw.arena.%arg-2%.high.loc} to location of player
- make player execute "//pos1"
- loop 50 times:
- send " "
- send "{@highset}"
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@noarenaname}"
- # !! SETTING THE LOW BOUND LOCATION !!
- if arg-1 is "setLow":
- if {sw.playing.%player%} is false:
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- set {sw.arena.%arg-2%.low.loc} to location of player
- make player execute "//pos1"
- loop 50 times:
- send " "
- send "{@lowset}"
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@noarenaname}"
- # !! SAVING ALL THE SETTINGS !!
- if arg-1 is "save":
- if {sw.playing.%player%} is true:
- send "{@nosettingchange}"
- if {sw.playing.%player%} is false:
- if arg-2 is not set:
- send "{@noarenaname}"
- if arg-2 is set:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.status.%arg-2%} = false:
- if {sw.arena.%arg-2%.joinable} = false:
- if {sw.arena.%arg-2%.exists} = true:
- if {sw.arena.%arg-2%.created} = true:
- if {sw.arena.%arg-2%.spawns.count} > 1:
- if {sw.arena.%arg-2%.mode} is set:
- if {sw.arena.%arg-2%.center.loc} is set:
- if {sw.arena.%arg-2%.high.loc} is set:
- if {sw.arena.%arg-2%.low.loc} is set:
- if {sw.arena.%arg-2%.mode} = "SOLO_NORMAL" or "SOLO_INSANE":
- set {sw.arena.%arg-2%.saving} to true
- send "{@prefix} &aSaving arena...."
- wait 15 ticks
- loop blocks within {sw.arena.%arg-2%.high.loc} and {sw.arena.%arg-2%.low.loc}:
- if {sw.arena.%arg-2%.mode} = "SOLO_NORMAL":
- if loop-block is a chest:
- add location of loop-block to {sw.arena.%arg-2%.SW.NORMAL.IS::*}
- wait 10 ticks
- if loop-block is a trapped chest:
- add location of loop-block to {sw.arena.%arg-2%.SW.NORMAL.MID::*}
- wait 10 ticks
- if {sw.arena.%arg-2%.mode} = "SOLO_INSANE":
- if loop-block is a chest:
- add location of loop-block to {sw.arena.%arg-2%.SW.INSANE.IS::*}
- wait 10 ticks
- if loop-block is a trapped chest:
- add location of loop-block to {sw.arena.%arg-2%.SW.INSANE.MID::*}
- wait 10 ticks
- make player execute command "rb addregion %arg-2%"
- send "{@prefix} &aThe arena %arg-2% was succesfully saved!"
- if {sw.arena.%arg-2%.mode} = "SOLO_NORMAL":
- add arg-2 to {sw.arenas.solo.normal::*}
- set {sw.arena.%arg-2%.saved} to true
- set {sw.arena.status.%arg-2%} to true
- set {sw.arena.%arg-2%.saving} to false
- if {sw.arena.%arg-2%.mode} = "SOLO_INSANE":
- add arg-2 to {sw.arenas.solo.normal::*}
- set {sw.arena.%arg-2%.saved} to true
- set {sw.arena.status.%arg-2%} to true
- set {sw.arena.%arg-2%.saving} to false
- else:
- send "{@nomodename}"
- else:
- send "{@highlocnotset}"
- else:
- send "{@lowlocnotset}"
- else:
- send "{cenlocnotset}"
- else:
- send "{@modenotset}"
- else:
- send "{@foundnocage}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@arenanotexist}"
- else:
- send "{@gameactive}"
- else:
- send "{@gameactive}"
- else:
- send "{@arenanotexist}"
- function helpList(p: player):
- send "&e&l&m------->>&r &b&lCRACK SKYWARS &e&l&m<<-------" to {_p}
- send "&8&l● &7/sw setLobby" to {_p}
- send "&8&l● &7/sw create &8(&7arena&8) (&7mode&8)" to {_p}
- send "&8&l● &7/sw delete &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw addSpawn &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw deleteSpawn &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw center &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw setHigh &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw setLow &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw save &8(&7arena&8)" to {_p}
- send "&8&l● &7/sw checkStats &8(&7player&8)" to {_p}
- on join:
- if {swlobby} is set:
- teleport player to {swlobby}
- if {swlobby} is not set:
- send "&aPlease ask an administrator to set the lobby location!"
Advertisement
Add Comment
Please, Sign In to add comment