Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Stats Skript by > InGame: ImReaperPvP | Spigot: mrcreeper6666
- #Required:
- # SkQuery
- # Skript
- #Version: 1.3
- #Changelog:
- #======================================================================#
- # Version | Typ | Features #
- #======================================================================#
- # v1.3 | Update | Added Stats GUI #
- # v1.2 | Update | Added /Setstats & Points #
- # v1.1 | Update | Added Online Check & Joins #
- # v1.0 | Release | - Kills/Deaths & /ResetStats & Death Message #
- #======================================================================#
- #Config:
- options:
- nopermission: "&8» &7You require the rank &4[ADMINISTRATOR]&7 to execute that command!." #NoPermission message can be Edited (The message supports Colorcodes: &<colorcode>)
- pointsadd: 5 #How much Points would be added after a Kill.[Default: 5]
- pointsremove: 2 #How much Points would be removed after a Death.[Default: 2]
- on join:
- set {status.%player%} to "&aOnline"
- add 1 to {joins.%player%}
- on connect:
- set {status.%player%} to "&3Joinend"
- on first join:
- set {status.%player%} to "&aOnline"
- set {kills.%player%} to 0
- set {deaths.%player%} to 0
- set {joins.%player%} to 0
- set {points.%player%} to 0
- add 1 to {joins.%player%}
- on quit:
- set {status.%player%} to "&cOffline"
- on death of player:
- add 1 to {kills.%attacker%}
- add 1 to {deaths.%player%}
- add {@pointsadd} to {points.%attacker%}
- remove {@pointsremove} from {points.%player%}
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send " " to player
- send "&8» &7You have been killed by &e%attacker's nickname%&7." to player
- send "&8» &6Health&8: &c%attacker's health% &c❤" to player
- send "&8» &7You have killed &e%player's nickname%&7." to attacker
- command /stats [<offlineplayer>]:
- permission: stats.stats
- permission message: {@nopermission}
- trigger:
- if arg 1 is not set:
- send "&8«=====» &6%player's name% &8«=====»"
- send "&8» &eKills&8: &7%{kills.%player%}%"
- send "&8» &eDeaths&8: &7%{deaths.%player%}%"
- send "&8» &eJoins&8: &7%{joins.%player%}%"
- send "&8» &ePoints&8: &7%{points.%player%}%"
- send "&8» &eStatus&8: %{status.%player%}%"
- send "&8«=====» &6%player's name% &8«=====»"
- if arg 1 is set:
- send "&8«=====» &6%arg 1% &8«=====»"
- send "&8» &eKills&8: &7%{kills.%arg 1%}%"
- send "&8» &eDeaths&8: &7%{deaths.%arg 1%}%"
- send "&8» &ePoints&8: &7%{points.%arg 1%}%"
- send "&8» &eJoins&8: &7%{joins.%arg 1%}%"
- send "&8» &eStatus&8: &r%{status.%arg 1%}%"
- send "&8«=====» &6%arg 1% &8«=====»"
- command /resetstats [<offlineplayer>]:
- permission: stats.reset
- permission message: {@nopermission}
- trigger:
- if arg 1 is not set:
- send "&8» &6Syntax&8: &e/ResetStats <Player>"
- if arg 1 is set:
- set {kills.%arg 1%} to 0
- set {deaths.%arg 1%} to 0
- set {joins.%arg 1%} to 1
- set {points.%arg 1%} to 0
- send "&8» &7You have resetted &e%arg 1's nickname%'s &6Stats&7." to player
- send "&8» &7Your &6Stats &7have been resetted by an &4Admin&7." to arg 1
- command /setstats <text> <number> [<offlineplayer>]:
- permission: stats.set
- permission message: {@nopermission}
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- send "&8» &6Syntax&8: &e/SetStats <Kills/Deaths/Joins/Points> <Number> <Player>" to player
- if arg 1 is set:
- if arg 1 is "kills" or "k":
- if arg 2 is set:
- if arg 3 is set:
- set {kills.%arg 3%} to arg-2
- send "&8» &e%arg 3%'s &eKills &7has been set to &e%arg 2%&7." to player
- else:
- send "&8» &7Please set a &ePlayer&7."
- else:
- send "&8» &7Please set a number of &eKills&7."
- if arg 1 is "deaths" or "d":
- if arg 2 is set:
- if arg 3 is set:
- set {deaths.%arg 3%} to arg-2
- send "&8» &e%arg 3%'s Deaths &7has been set to &e%arg 2%&7." to player
- else:
- send "&8» &Please set a &ePlayer&7."
- else:
- send "&8» &7Please set a number of &eKills&7"
- if arg 1 is "joins" or "j":
- if arg 2 is set:
- if arg 3 is set:
- set {joins.%arg 3%} to arg-2
- send "&8» &e%arg 3%'s Joins &7has been set to &e%arg 2%&7." to player
- else:
- send "&8» &7Please set a &ePlayer&7."
- else:
- send "&8» &7Please set a number of &eJoin&7."
- if arg 1 is "points" or "p":
- if arg 2 is set:
- if arg 3 is set:
- set {points.%arg 3%} to arg-2
- send "&8» &e%arg 3%'s Points &7has been set to &e%arg 2%&7." to player
- else:
- send "&8» &&7Please set a &ePlayer&7."
- else:
- send "&8» &7Please set a number of &ePoints&7"
- command /gstats [<offlineplayer>]:
- permission: stats.gui
- permission message: {@nopermission}
- trigger:
- if arg 1 is not set:
- open chest with 1 row named "&8» &eStats &7from &6%player%" to player
- format slot 4 of player with 1 iron block named "&8» &ePlayer&8: &7%player%" with lore "&8» &eStatus&8: &7%{status.%player%}%" to be unstealable
- format slot 0 of player with 1 iron sword named "&8» &eKills&8: &7%{kills.%player%}%" to be unstealable
- format slot 1 of player with 1 black window glass named "&8" to be unstealable
- format slot 3 of player with 1 black window glass named "&8" to be unstealable
- format slot 5 of player with 1 black window glass named "&8" to be unstealable
- format slot 7 of player with 1 black window glass named "&8" to be unstealable
- format slot 2 of player with 1 fire charge named "&8» &eDeaths&8: &7%{deaths.%player%}%" to be unstealable
- format slot 6 of player with 1 ender pearl named "&8» &ePoints&8: &7%{points.%player%}%" to be unstealable
- format slot 8 of player with 1 crafting table named "&8» &eJoins&8: &7%{joins.%player%}%" to be unstealable
- if arg 1 is set:
- open chest with 1 row named "&8» &eStats &7from &6%arg 1%" to player
- format slot 4 of player with 1 iron block named "&8» &ePlayer&8: &7%arg 1%" with lore "&8» &eStatus&8: &7%{status.%arg 1%}%" to be unstealable
- format slot 0 of player with 1 iron sword named "&8» &eKills&8: &7%{kills.%arg 1%}%" to be unstealable
- format slot 1 of player with 1 black window glass named "&8" to be unstealable
- format slot 3 of player with 1 black window glass named "&8" to be unstealable
- format slot 5 of player with 1 black window glass named "&8" to be unstealable
- format slot 7 of player with 1 black window glass named "&8" to be unstealable
- format slot 2 of player with 1 fire charge named "&8» &eDeaths&8: &7%{deaths.%arg 1%}%" to be unstealable
- format slot 6 of player with 1 ender pearl named "&8» &ePoints&8: &7%{points.%arg 1%}%" to be unstealable
- format slot 8 of player with 1 crafting table named "&8» &eJoins&8: &7%{joins.%arg 1%}%" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment