Guest User

NightVision fix

a guest
Jan 1st, 2016
338
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NightVision 1.0 by RoyalBiskit
  2.  
  3. #////// OPTIONS ///////////////////////////////////
  4.  
  5. options:
  6. Prefix: &8[&a&lNight&7&lVision&8]
  7. JoinMessage: &7Toggle night vision with /nv
  8. EnableMessage: &7Night vision has been enabled. Do /nv to toggle
  9. DisableMessage: &7Night vision has been disabled. Do /nv to toggle
  10. NoPermission: &cNo Permission!
  11.  
  12. #////// THE SKRIPT //////////////////////////////////////////
  13. #Do not touch unless you know what you are doing!
  14.  
  15.  
  16.  
  17.  
  18.  
  19. variables:
  20. {nightvision.mode.%player%} = "False"
  21. on load:
  22. message "Night Vision 1.0 by RoyalBiskit has been enabled" to console
  23. on join:
  24. if player has permission "nightvision.enable":
  25. wait 28 ticks
  26. message "{@Prefix} {@JoinMessage}"
  27. command /nightvision:
  28. aliases: nv
  29. permission: nightvision.enable
  30. permission message: {@NoPermission}
  31. trigger:
  32. if {nightvision.mode.%player%} is "False":
  33. message "{@Prefix} {@EnableMessage}"
  34. set {nightvision.mode.%player%} to "True"
  35. apply night vision to the player for 100000 seconds
  36. exit trigger
  37. else:
  38. if {nightvision.mode.%player%} is "True":
  39. message "{@Prefix} {@DisableMessage}"
  40. set {nightvision.mode.%player%} to "False"
  41. remove night vision from the player
  42. exit trigger
RAW Paste Data