Advertisement
Guest User

PVP Stats (GUI)

a guest
Jan 31st, 2019
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 4.25 KB | None | 0 0
  1. # *********************************************************************************
  2. #                       ON FIRST JOIN EVENT
  3. # *********************************************************************************
  4.  
  5.  
  6. Options:
  7.     pf: &8&l| &aGreenEnder &8&l|
  8.  
  9.  
  10.  
  11. # *********************************************************************************
  12. #                       ON FIRST JOIN EVENT
  13. # *********************************************************************************
  14.  
  15.  
  16. On first join:
  17.     set {antalkills.%player%} to 0
  18.     set {antaldøde.%player%} to 0
  19.     set {killstreak.%player%} to 0
  20.     set {nuværendekills.%player%} to 0
  21.     set {nuværendedøde.%player%} to 0
  22.     set {nuværendekillstreak.%player%} to 0
  23.  
  24.  
  25. # *********************************************************************************
  26. #                       COMMAND TIL MENUEN
  27. # *********************************************************************************
  28.  
  29. command /spillerinfo [<offlineplayer>]:
  30.     trigger:
  31.         if arg 1 is not set:
  32.             message "{@pf} &7Du har ikke indtastet en spillers navn: &7/spillerinfo &a<player>"
  33.         if arg 1 is set:
  34.             wait 2 tick
  35.             open chest with 3 rows named "&6SPILLER >> &a%arg 1%" to player
  36.             wait 2 tick
  37.             format slot 0 of player with light green glass pane named "" with lore "" to be unstealable
  38.             format slot 1 of player with light green glass pane named "" with lore "" to be unstealable
  39.             format slot 2 of player with light green glass pane named "" with lore "" to be unstealable
  40.             format slot 3 of player with light green glass pane named "" with lore "" to be unstealable
  41.             format slot 4 of player with light green glass pane named "" with lore "" to be unstealable
  42.             format slot 5 of player with light green glass pane named "" with lore "" to be unstealable
  43.             format slot 6 of player with light green glass pane named "" with lore "" to be unstealable
  44.             format slot 7 of player with light green glass pane named "" with lore "" to be unstealable
  45.             format slot 8 of player with light green glass pane named "" with lore "" to be unstealable
  46.             format slot 18 of player with light green glass pane named "" with lore "" to be unstealable
  47.             format slot 19 of player with light green glass pane named "" with lore "" to be unstealable
  48.             format slot 20 of player with light green glass pane named "" with lore "" to be unstealable
  49.             format slot 21 of player with light green glass pane named "" with lore "" to be unstealable
  50.             format slot 22 of player with light green glass pane named "" with lore "" to be unstealable
  51.             format slot 23 of player with light green glass pane named "" with lore "" to be unstealable
  52.             format slot 24 of player with light green glass pane named "" with lore "" to be unstealable
  53.             format slot 25 of player with light green glass pane named "" with lore "" to be unstealable
  54.  
  55.             format slot 13 of player with player's skull named "&6SPILLER >> &a%arg 1%" with lore "&7Kills: &a%{antalkills.%player%}%||&7Døde: &a%{antaldøde.%player%}%||&7Killstreak: &a%{killstreak.%player%}%||&7Nuværende kills: &a%{nuværendekills.%player%}%||&7Nuværende døde: &a%{nuværendedøde.%player%}%||&7Nuværende killstreak: &a%{nuværendekillstreak.%player%}%" to be unstealable
  56.  
  57.  
  58. # *********************************************************************************
  59. #                       ON DEATH EVENT
  60. # *********************************************************************************
  61.  
  62.  
  63. On death:
  64.     victim is a player
  65.     add 1 to {antaldøde.%player%}
  66.     add 1 to {nuværendedøde.%player%}
  67.     attacker is a player
  68.     add 1 to {antalkills.%player%}
  69.     add 1 to {nuværendekills.%player%}
  70.     add 1 to {nuværendekillstreak.%player%}
  71.     message "{@pf} &7Du har nu en killstreak på &a%{nuværendekillstreak.%player%}%" to attacker
  72.     set {nuværendekillstreak.%victim%} to 0
  73.     if {nuværendekillstreak.%attacker%} is greater than {killstreak.%attacker%}:
  74.         set {killstreak.%attacker%} to {nuværendekillstreak.%attacker%}
  75.         message "{@pf} &7Din nye bedste killstreak er &a%{killstreak.%attacker%}%" to attacker
  76.  
  77.  
  78. # *********************************************************************************
  79. #                       ON QUIT EVENT
  80. # *********************************************************************************
  81.  
  82. On quit:
  83.     set {nuværendekills.%player%} to 0
  84.     set {nuværendekillstreak.%player%} to 0
  85.     set {nuværendedøde.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement