Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #
- # nCore by Vaded
- # Version 1.0
- # Requirements: SkQuery, Skript (2.1.2+)
- #
- Color: &a
- deny-message: &cYou do not have permission to execute this command.
- #------------------------------------------------------------------
- # Scoreboard
- on right click:
- if {staffmode.%player%} is not set:
- if player is holding ender pearl:
- set {_waited} to difference between {pearl.%player%.lastused} and now
- if {_waited} is less than 15 seconds:
- send "&eYou cannot use this for another {@Color}%difference between 15 seconds and {_waited}%&e."
- cancel event
- stop
- wipe player's sidebar
- delete stylish scoreboard "MainE-%player%"
- wait 1 tick
- create new stylish scoreboard named "MainE-%player%"
- set title of stylish scoreboard "MainE-%player%" to "&a&lKitPVP"
- create a new id based score "MainE-%player%grayLine-1" with text "&a&7&m----------------------" slot 0 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%grayLine-2" with text "&d&7&m----------------------" slot 12 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Balance" with text "&eBalance&7: &f%{balance.%player's uuid%}%" slot 11 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Deaths" with text "&eDeaths&7: &f%{deaths.%player's uuid%}%" slot 10 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Kills" with text "&eKills&7: &f%{kills.%player's uuid%}%" slot 9 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Level" with text "&eLevel&7: &f%{level.%player's uuid%}%" slot 8 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Level-progress" with text "&eLevel Progress&7: &f%{next-level.%player's uuid%}%/20" slot 7 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Ping" with text "&ea" slot 6 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%grayLinePearl" with text "&c&d&7&m----------------------" slot 5 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Blank" with text "&a&e&b&3" slot 4 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Cooldown-Head" with text "&6&lPearl Cooldown:" slot 3 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Cooldown" with text "&c%difference between 15 seconds and {_waited}%" slot 2 for stylish scoreboard "MainE-%player%"
- create a new id based score "MainE-%player%Blank2" with text "&a " slot 1 for stylish scoreboard "MainE-%player%"
- set stylish scoreboard of player to "MainE-%player%"
- set {pearl.%player%.lastused} to now
- player command "resume-scoreboard-main-pearl"
- on damage:
- set {combat.%victim%.lastused} to now
- set {combat.%attacker%.lastused} to now
- command /resume-scoreboard-main-pearl [<text>]:
- trigger:
- wait 15 seconds
- set stylish scoreboard of player to "Main-%player%"
- send "&eYour pearl cooldown has expired!"
- every 2 ticks:
- loop all players:
- if {staffmode.%loop-player%} is not set:
- set {_waited} to difference between {pearl.%loop-player%.lastused} and now
- if {_waited} is less than 15 seconds:
- set text of id "MainE-%loop-player%Balance" to " &eBalance&7: &f$%{balance.%loop-player's uuid%}%"
- set text of id "MainE-%loop-player%Deaths" to " &eDeaths&7: &f%{deaths.%loop-player's uuid%}%"
- set text of id "MainE-%loop-player%Kills" to " &eKills&7: &f%{kills.%loop-player's uuid%}%"
- set text of id "MainE-%loop-player%Level" to " &eLevel&7: &f%{level.%loop-player's uuid%}%"
- set text of id "MainE-%loop-player%Level-progress" to " &eLevel Progress&7: &f%{next-level.%loop-player's uuid%}%/20"
- set text of id "MainE-%loop-player%Ping" to " &ePing&7: &f%loop-player's ping%"
- set text of id "MainE-%loop-player%Cooldown" to " &c%difference between 15 seconds and {_waited}%"
- on join:
- wipe player's sidebar
- delete stylish scoreboard "Main-%player%"
- wait 1 tick
- create new stylish scoreboard named "Main-%player%"
- set title of stylish scoreboard "Main-%player%" to "&a&lKitPVP"
- create a new id based score "Main-%player%grayLine-1" with text "&a&7&m----------------------" slot 0 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%grayLine-2" with text "&d&7&m----------------------" slot 7 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%Balance" with text "&eBalance&7: &f%{balance.%player's uuid%}%" slot 6 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%Deaths" with text "&eDeaths&7: &f%{deaths.%player's uuid%}%" slot 5 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%Kills" with text "&eKills&7: &f%{kills.%player's uuid%}%" slot 4 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%Level" with text "&eLevel&7: &f%{level.%player's uuid%}%" slot 3 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%Level-progress" with text "&eLevel Progress&7: &f%{next-level.%player's uuid%}%/20" slot 2 for stylish scoreboard "Main-%player%"
- create a new id based score "Main-%player%Ping" with text "&ea" slot 1 for stylish scoreboard "Main-%player%"
- set stylish scoreboard of player to "Main-%player%"
- every 2 tick:
- loop all players:
- if {staffmode.%loop-player%} is not set:
- set {_waited} to difference between {pearl.%loop-player%.lastused} and now
- if {_waited} is less than 15 seconds:
- stop
- set text of id "Main-%loop-player%Balance" to " &eBalance&7: &f$%{balance.%loop-player's uuid%}%"
- set text of id "Main-%loop-player%Deaths" to " &eDeaths&7: &f%{deaths.%loop-player's uuid%}%"
- set text of id "Main-%loop-player%Kills" to " &eKills&7: &f%{kills.%loop-player's uuid%}%"
- set text of id "Main-%loop-player%Level" to " &eLevel&7: &f%{level.%loop-player's uuid%}%"
- set text of id "Main-%loop-player%Level-progress" to " &eLevel Progress&7: &f%{next-level.%loop-player's uuid%}%/20"
- set text of id "Main-%loop-player%Ping" to " &ePing&7: &f%loop-player's ping%"
- #------------------------------------------------------------------
- # -Kits-
- command /kit [<text>] [<offline player>] [<text>]:
- permission: ncore.command.kits
- permission message: {@deny-message}
- aliases: /ncore:kit, /kits, /ncore:kits
- trigger:
- if {staffmode.%player%} is set:
- send "&cYou cannot use this command at this time."
- stop
- if arg 3 is set:
- send "&cUnknown command."
- else:
- if arg 1 is not set:
- if {kits::*} is not set:
- send "&cThere are currently no available kits."
- else:
- set {_kits} to "%{kits::*}%"
- replace all "*" in {_kits} with "{@Color}"
- replace all ", " with "&e, " in {_kits}
- replace " and " with "&e, " in {_kits}
- send "&eKits: %{_kits}%"
- else:
- if arg 2 is set:
- if {staffmode.%arg-2%} is set:
- send "&cYou cannot give this player a kit at this time."
- stop
- if arg 2 is not online:
- send "&cThere is no one named %arg-2% online."
- stop
- if player does not have permission "ncore.command.kit.others":
- send "&cUnknown command."
- stop
- if {kit.%arg-1%} is not set:
- send "&cThere is no kit named &e%arg-1%&c."
- stop
- if player does not have permission "ncore.kit.%arg-1%":
- send "&cYou do not have permission to use this kit."
- stop
- else:
- set {_waited} to difference between {kit.%arg-1%.lastused.%arg-2%} and now
- if {_waited} is less than {kit.%arg-2%.cooldown}:
- send "&cYou are on cooldown for kit %{kit.%arg-1%}% for %{kit.%arg-1%.cooldown}%."
- stop
- set {kit.%arg-1%.lastused.%arg-2%} to now
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of arg 2 to {kit.%arg-1%.slot.%{_slot}%}
- add 1 to {_slot}
- send "&eYou have recieved kit {@Color}%{kit.%arg-1%}%&e." to arg 2
- send "&eYou have given kit {@Color}%{kit.%arg-1%}% &eto {@Color}%arg-2%&e."
- else:
- if {kit.%arg-1%} is not set:
- send "&cThere is no kit named &e%arg-1%&c."
- stop
- if player does not have permission "ncore.kit.%arg-1%":
- send "&cYou do not have permission to use this kit."
- stop
- else:
- set {_waited} to difference between {kit.%arg-1%.lastused.%player%} and now
- if {_waited} is less than {kit.%arg-1%.cooldown}:
- send "&cYou are on cooldown for kit %{kit.%arg-1%}% for %{kit.%arg-1%.cooldown}%."
- stop
- set {kit.%arg-1%.lastused.%player%} to now
- set {_slot} to 0
- loop 36 times:
- set slot {_slot} of player to {kit.%arg-1%.slot.%{_slot}%}
- add 1 to {_slot}
- send "&eYou have recieved kit {@Color}%{kit.%arg-1%}%&e."
- command /createkit [<text>] [<timespan>]:
- permission: ncore.command.addkit
- permission message: {@deny-message}
- aliases: /ncore:addkit, /addkit, /ncore:createkit, /setkit, /ncore:setkit
- trigger:
- if {oijsdoif} is set:
- delete {orakoiroirjt}
- else:
- if arg 2 is not set:
- send "&cUsage: /createkit <name> [time]"
- else:
- if arg 1 contains "*":
- send "&cPlease do not include any special characters."
- stop
- if arg 1 contains " ":
- send "&cPlease do not include any spaces."
- stop
- if {kit.%arg-1%} is set:
- send "&cThis kit already exists!"
- else:
- add 1 to {kits}
- set {kit-id.%{kits}%} to arg 1
- set {kit.%arg-1%} to arg 1
- set {kit.%arg-1%.cooldown} to arg 2
- add "*%arg-1%" to {kits::*}
- set {_slot} to 0
- loop 35 times:
- set {kit.%arg-1%.slot.%{_slot}%} to slot {_slot} of player
- add 1 to {_slot}
- send "&eYou have created kit {@Color}%arg-1%&e with a delay of {@Color}%arg-2%&e."
- on inventory click:
- if inventory name of player's current inventory contains "Select a Kit":
- cancel event
- if clicked item is paper:
- player command "kit %uncolored name of clicked item%"
- command /deletekit [<text>] [<text>]:
- permission: ncore.command.deletekit
- permission message: {@deny-message}
- aliases: /ncore:deletekit, /ncore:delkit, /delkit, /remkit, /removekit, /ncore:delkit, /ncore:remkit, /ncore:removekit
- trigger:
- if arg 2 is set:
- send "&cUnknown command."
- else:
- if arg 1 is not set:
- send "&cUsage: /delkit [kit]"
- else:
- if {kit.%arg-1%} is not set:
- send "&cThis kit does not exist."
- else:
- remove "*%{kit.%arg-1%}%" from {kits::*}
- send "&eYou have removed kit {@Color}%{kit.%arg-1%}%&e."
- delete {kit.%arg-1%}
- command /warp [<text>] [<offline player>] [<text>]:
- permission: ncore.command.warp
- permission message: {@deny-message}
- aliases: /warps, /ncore:warp, /ncore:warps
- trigger:
- if arg 3 is set:
- send "&cUnknown command."
- stop
- if arg 1 is not set:
- if {warps::*} is not set:
- send "&cThere are currently no available warps."
- else:
- set {_warps} to "%{warps::*}%"
- replace all "*" with "{@Color}" in {_warps}
- replace all ", " with "&e, " in {_warps}
- replace " and " with "&e, " in {_warps}
- send "&eWarps: %{_warps}%"
- else:
- if arg 2 is set:
- if arg 2 is not online:
- send "&cThere is no one named %arg-2% online."
- stop
- if {warp.%arg-1%} is not set:
- send "&cThere is no warp named &e%arg-1%&c."
- else:
- if player does not have permission "ncore.warp.%arg-1%":
- send "&cYou do not have permission to warp to &e%{warp.%arg-1%}%&c."
- else:
- teleport arg 2 to {warp.%{warp.%arg-1%}%.location}
- send "&eYou have warped to {@Color}%{warp.%arg-1%}%e." to arg 2
- send "&eYou have warped {@Color}%arg-2%} &eto {@Color}%{warp.%arg-1%}%&e."
- if player has permission "ncore.staff":
- loop all players:
- if loop-player has permission "ncore.notify.warp":
- send "&7&o[%player%: &ewarped %arg-2% to %{warp.%arg-1%}%&7&o]" to loop-player
- else:
- if {warp.%arg-1%} is not set:
- send "&cThere is no warp named &e%arg-1%&c."
- else:
- if player does not have permission "ncore.warp.%arg-1%":
- send "&cYou do not have permission to use this warp."
- else:
- teleport player to {warp.%{warp.%arg-1%}%.location}
- send "&eYou have warped to {@Color}%{warp.%arg-1%}%&e."
- if player has permission "ncore.staff":
- loop all players:
- if loop-player has permission "ncore.notify.warp":
- send "&7&o[%player%: &ewarped to %{warp.%arg-1%}%&7&o]" to loop-player
- command /createwarp [<text>] [<text>]:
- permission: ncore.command.createwarp
- permission message: {@deny-message}
- aliases: /ncore:setwarp, /ncore:createwarp, /ncore:addwarp, /createwarp, /addwarp
- trigger:
- if arg 2 is set:
- send "&cUnknown command."
- else:
- if arg 1 is not set:
- send "&cUsage: /createwarp <name>"
- else:
- if arg 1 contains "*":
- send "&cPlease do not include any special characters."
- else:
- if {warp.%arg-1%} is set:
- send "&cThere is already a warp named &e%{warp.%arg-1%}%&c."
- else:
- if block under player is air:
- send "&cYou cannot set a warp at this time, try moving to another location."
- else:
- set {warp.%arg-1%} to arg 1
- set {warp.%{warp.%arg-1%}%.location} to player's location
- add "*%arg-1%" to {warps::*}
- send "&eYou have created the {@Color}%{warp.%arg-1%}% &ewarp."
- command /deletewarp [<text>] [<text>]:
- permission: ncore.command.deletewarp
- permission message: {@deny-message}
- aliases: /ncore:deletewarp, /delwarp, /ncore:delwarp, /remwarp, /ncore:remwarp, /removewarp, /ncore:removewarp
- trigger:
- if arg 2 is set:
- send "&cUnknown command."
- else:
- if arg 1 is not set:
- send "&cUsage: /deletewarp [warp]"
- else:
- if arg 1 contains "*":
- send "&cPlease do not include any special characters."
- else:
- if {warp.%arg-1%} is not set:
- send "&cThere is no warp named &e%arg-1%&c."
- else:
- delete {warp.%{warp.%arg-1%}%.location}
- remove "*%arg-1%" from {warps::*}
- send "&eYou have removed the {@Color}%{warp.%arg-1%}% &ewarp."
- delete {warp.%arg-1%}
- on death:
- if attacker is set:
- if attacker is not victim:
- if {next-level.%attacker's uuid%} > 18:
- add 1 to {level.%attacker's uuid%}
- set {next-level.%attacker's uuid%} to -1
- send "&eYou have leveled up to {@Color}%{level.%attacker's uuid%}%&e." to attacker
- add 100 to {balance.%attacker's uuid%}
- console command "bc {@Color}%attacker% &ehas leveled up to {@Color}%{level.%attacker's uuid%}%&e."
- add 20 to {balance.%attacker's uuid%}
- send "&aYou have recieved $20 for killing %victim%." to attacker
- add 1 to {kills.%attacker's uuid%}
- add 1 to {next-level.%attacker's uuid%}
- add 1 to {deaths.%victim's uuid%}
- if {next-level.%victim's uuid%} > 0:
- remove 1 from {next-level.%victim's uuid%}
- on join:
- if {kills.%player's uuid%} is not set:
- set {kills.%player's uuid%} to 0
- if {deaths.%player's uuid%} is not set:
- set {deaths.%player's uuid%} to 0
- if {next-level.%player's uuid%} is not set:
- set {next-level.%player's uuid%} to 0
- command /balance [<offline player>] [<text>]:
- permission: ncore.command.balance
- permission message: {@deny-message}
- aliases: /ncore:balance, /bal, /ncore:bal
- trigger:
- if arg 1 is not set:
- send "{@Color}%player%'s &ebalance: {@Color}$%{balance.%player's uuid%}%"
- else:
- if arg 1 is "%player%":
- send "{@Color}%player%'s &ebalance: {@Color}$%{balance.%player's uuid%}%"
- else:
- if {vanish.%arg-1%} is set:
- send "&cThere is no one named %arg-1% online."
- else:
- if {balance.%arg-1's uuid%} is not set:
- send "&cThis player has never joined before."
- else:
- send "{@Color}%arg-1%'s &ebalance: {@Color}$%{balance.%arg-1's uuid%}%"
- on join:
- if {balance.%player's uuid%} is not set:
- set {balance.%player's uuid%} to 0
- command /eco [<string>] [<offline player>] [<text>] [<text>]:
- permission: ncore.command.eco
- permission message: {@deny-message}
- aliases: /ncore:eco
- trigger:
- if arg 4 is set:
- send "&cUnknown command."
- stop
- if arg 1 is not set:
- send "&cUsage: /eco [subcommand] <player> <args>"
- else:
- if arg 1 is "help":
- send "&e/eco give <player> <amount>"
- send "&e/eco take <player> <amount>"
- send "&e/eco reset <player>"
- else if arg 1 is "give":
- if arg 3 is not set:
- send "&cUsage: /eco give <player> <amount>"
- else:
- if {balance.%arg-2's uuid%} is not set:
- send "&cThis player has never joined before."
- else:
- add ("%arg-3%" parsed as integer) to {balance.%arg-2's uuid%}
- send "{@Color}$%arg-3% &ehas been added to your balance." to arg 2
- send "&e{@Color}%arg-2%'s &ebalance has been updated to {@Color}$%{balance.%arg-2's uuid%}%&e."
- loop all players:
- if loop-player has permission "ncore.notify.eco.give":
- send "&7&o[%player%: &eadded $%arg-3% to %arg-2%'s balance&7&o]" to loop-player
- else if arg 1 is "take":
- if arg 3 is not set:
- send "&cUsage: /eco take <player> <amount>"
- else:
- if {balance.%arg-2's uuid%} is not set:
- send "&cThis player has never joined before."
- else:
- if {balance.%arg-2's uuid%} < ("%arg-3%" parsed as an integer):
- send "&c{@Color}%arg-2% does not have %arg-3%&c."
- else:
- remove arg 3 from {balance.%arg-2's uuid%}
- send "{@Color}$%arg-3% &ehas been removed from your balance." to arg 2
- send "{@Color}%arg-2%'s &ebalance has been updated to {@Color}$%{balance.%arg-2's uuid%}%&e."
- loop all players:
- if loop-player has permission "ncore.notify.eco.taken":
- send "&7&o[%player%: &etook $%arg-3% from %arg-2%'s balance&7&o]" to loop-player
- else if arg 1 is "reset":
- if arg 3 is set:
- send "&cUnknown command."
- stop
- if arg 2 is not set:
- send "&cUsage: /eco reset <player>"
- else:
- if {balance.%arg-2's uuid%} is not set:
- send "&cThis player has never joined before."
- stop
- if {balance.%arg-2's uuid%} < 1:
- send "&cThis player does not have any funds to reset."
- else:
- set {balance.%arg-2's uuid%} to 0
- send "&eYour balance has been reset." to arg 2
- send "{@Color}%arg-2%'s &ebalance has been updated to {@Color}$%{balance.%arg-2's uuid%}%&e."
- loop all players:
- if loop-player has permission "ncore.notify.eco.give":
- send "&7&o[%player%: &ereset %arg-2%'s balance&7&o]" to loop-player
- else:
- send "&cInvalid sub command, type /eco help"
- on respawn:
- teleport player to {spawn}
- command /level [<offline player>] [<text>]:
- permission: ncore.command.level
- permission message: {@deny-message}
- aliases: /ncore:level, /checklevel, /ncore:checklevel
- trigger:
- if arg 2 is set:
- send "&cUnknown command."
- else:
- if arg 1 is not set:
- send "{@Color}%player%'s &elevel: {@Color}%{level.%player's uuid%}%"
- else:
- if arg 1 is "%player%":
- send "{@Color}%player%'s &elevel: {@Color}%{level.%player's uuid%}%"
- stop
- if {vanish.%arg-1%} is set:
- send "&cThere is no one named %arg-1% online."
- stop
- if {level.%arg-1's uuid%} is not set:
- send "&cThis player has never joined before."
- else:
- send "{@Color}%arg-2%'s &elevel: {@Color}%{level.%arg-1's uuid%}%"
- on join:
- if {level.%player's uuid%} is not set:
- set {level.%player's uuid%} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement