Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #simple stat counter for server
  2. #Created by AzureBluets - Do not remove these comments
  3. #Please credit me accordingly, and do not repost this skript. The only original source is from a profile named AzureBluets on spigotmc.org
  4. #Please report any reposts or issues on my discord server :discord.gg/BBZbWse
  5.  
  6. on place:
  7. add 1 to {blocksplaced}
  8.  
  9. on join:
  10. add 1 to {joins}
  11.  
  12.  
  13. on break:
  14. add 1 to {brokenblocks}
  15.  
  16. on load:
  17. add 1 to {serverstarts}
  18.  
  19.  
  20. on smelt:
  21. add 1 to {itemssmelted}
  22.  
  23.  
  24. every second:
  25. add 1 to {totalserveruptimes}
  26. if {totalserveruptimes} is equal to 60:
  27. set {totalserveruptimes} to 0
  28. add 1 to {totalserveruptime}
  29. if {totalserveruptime} is equal to 60:
  30. set {totalserveruptime} to 0
  31. add 1 to {totalserveruptimeh}
  32. if {totalserveruptimeh} is equal to 24:
  33. set {totalserveruptimeh} to 0
  34. add 1 to {totalserveruptimed}
  35.  
  36.  
  37.  
  38. command /serverstats:
  39. permission: stats.view
  40. permission message: &cYou do not have permission!
  41. trigger:
  42. send "&8--------{&b&lServer Stats&8}-------- "
  43. send "&fTimes server started: &e %{serverstarts}%"
  44. send "&fTotal runtime : &e %{totalserveruptimed}%&e:%{totalserveruptimeh}%&e:%{totalserveruptime}%&e:%{totalserveruptimes}% (DD:HH:MM:SS)"
  45. send "&fBlocks Broken: &e %{brokenblocks}% "
  46. send "&fBlocks Placed: &e %{blocksplaced}%"
  47. send "&fItems Smelted: &e %{itemssmelted}%"
  48. send "&fPlayers joined: &e %{joins}%"
  49. stop
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement