Advertisement
PabloEduardo

xp2

Sep 22nd, 2022
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on join:
  2.     wait 15 seconds
  3.     set {lvlmultipler::%player%} to {Multipler-Happy}
  4.     if {-XPBonus::%{aldea::%player%}%} is set:
  5.         set {lvlmultipler::%player%} to {-XPBonus::%{aldea::%player%}%}
  6. every 5 minutes:
  7.     loop all players:
  8.         if {-XPBonus::%{aldea::%loop-player%}%} is set:
  9.             create bossbar titled "&d&lBONUS TEMPLO &6x%{-XPBonus::%{aldea::%loop-player%}%}% &5&lEXP &7(&oNivel y Forja&7)" and id "bonus" for all loop-players with progress 100 with colors red
  10.             set {lvlmultipler::%loop-player%} to {-XPBonus::%{aldea::%loop-player%}%}
  11. command /XPAldea [<player>] [<number>]:
  12.     permission: StaffLvl2
  13.     trigger:
  14.         broadcast "&2¡&d%arg-1% &2gano un bonus de &5&lXP&2 por &b1 Hora&2 para toda su Aldea!"
  15.         set {-XPBonus::%{aldea::%arg-1%}%} to arg-2
  16.         loop all players:
  17.             if {aldea::%loop-player%} is equal to {aldea::%arg-1%}:
  18.                 set {lvlmultipler::%loop-player%} to {-XPBonus::%{aldea::%player%}%}
  19.                 create bossbar titled "&d&lBONUS TEMPLO &6x{-XPBonus::%{aldea::%player%}%} &5&lEXP &7(&oNivel y Forja&7)" and id "bonus" for all loop-players with progress 100 with colors red
  20.         wait 2 minutes
  21.         delete {-XPBonus::%{aldea::%arg-1%}%}
  22.         loop all players:
  23.             set {lvlmultipler::%loop-player%} to {Multipler-Happy}
  24.         remove bossbar "bonus"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement