7mm

maxhealth

7mm
Feb 23rd, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. on join:
  2. if {maxhealth} is set:
  3. set player's max health to {maxhealth}
  4. else:
  5. reset player's max health
  6.  
  7. command /maxhealth <integer>:
  8. permission: skript.maxhealth
  9. trigger:
  10. if arg 1 > 0:
  11. set {maxhealth} to arg 1
  12. set all players' max health to {maxhealth}
  13. stop
  14. clear {maxhealth}
  15. reset all players' max health
Advertisement
Add Comment
Please, Sign In to add comment