Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /stats [<offline player>]:
- trigger:
- if arg-1 is set:
- open virtual chest inventory with size 1 named "Stats" to player
- wait 1 tick
- format slot 4 of player with skull of arg-1 named "&b&lStats of %arg-1%" to close
- format slot 2 of player with clock named "&e&lPlayTime" with lore "&b&lSeconds: &f&l%{playtimeS.%arg-1%}%" to close
- format slot 6 of player with paper named "&4&lRank" with lore "&c&l%arg-1's group%" to close
- if arg-1 is not set:
- open virtual chest inventory with size 1 named "Stats" to player
- wait 1 tick
- format slot 4 of player with skull of arg-1 named "&b&lStats of %arg-1%" to close
- format slot 2 of player with clock named "&e&lPlayTime" with lore "&b&lSeconds: &f&l%{playtimeS.%arg-1%}%||&b&lMinutes: &f&l%{playtimeM.%arg-1%}%||&b&lHours: &f&l%{playtimeH.%arg-1%}%||&b&lDays: &f&l%{playtimeD.%arg-1%}%" to close
- format slot 6 of player with paper named "&4&lRank" with lore "%arg-1's group%" to close
- every 1 second:
- loop all players:
- add 1 to {playtimeS.%loop-player%}
- if {playtimeS.%loop-player%} is 60:
- remove 60 from {playtimeS.%loop-player%}
- add 1 to {playtimeM.%loop-player%}
- if {playtimeM.%loop-player%} is 60:
- remove 60 from {playtimeM.%loop-player%}
- add 1 to {playtimeH.%loop-player%}
- if {playtimeH.%loop-player%} is 24:
- remove 24 from {playtimeH.%loop-player%}
- add 1 to {playtimeD.%loop-player%}
- command /resetplaytime [<offline player>]:
- permission: resetpt.use
- permission message: no lol
- trigger:
- if arg-1 is set:
- set {playtimeS.%arg-1%} to 0
- set {playtimeM.%arg-1%} to 0
- set {playtimeH.%arg-1%} to 0
- set {playtimeD.%arg-1%} to 0
- on first join:
- set {playtimeS.%player%} to 0
- set {playtimeM.%player%} to 0
- set {playtimeH.%player%} to 0
- set {playtimeD.%player%} to 0
- command /playtime [<text>]:
- trigger:
- if arg-1 isn't set:
- send "&fSeconds: &7%{playtimeS.%player%}%"
- send "&fMinutes: &7%{playtimeM.%player%}%"
- send "&fHours: &7%{playtimeH.%player%}%"
- send "&fDays: &7%{playtimeD.%player%}%"
- if arg-1 is set:
- if arg-1 is "help" or "Help":
- send "&f/playtime - &7Shows your playtime"
- send "&f/playtime help - &7Shows this message"
- send "&f/playtime credits - &7Shows the credits of this skript"
- if arg-1 is "credits" or "Credits":
- send "&fMade by iPingSpoof"
- send "&f*made while using airpods*"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement