Guest User

Untitled

a guest
Oct 22nd, 2014
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. # - This skript is made by RemixNsG - #
  2. # - If you have any errors please contact me on the reddit via /u/RemixNsG - #
  3. # - Send me a PRIVATE message - #
  4. # - Please make title <Skript: Skyhigh - Errors> - #
  5. # - Put your errors in the text box and i will get back to you on the error - #
  6. # - Gamemode Made by /u/MrTeamRaven - #
  7. # - Plugin by Ellzman - #
  8. # - Plugin Link: https://www.dropbox.com/s/5alpe67m6m709b8/Skyhigh.jar - #
  9. # - Also if this skript doesnt work revert to the Well made Plugin. - #
  10.  
  11.  
  12.  
  13. options:
  14. # All broadcast Prefixs
  15. Pre:&8[&bSkyhigh&8]
  16.  
  17. # Chat Color
  18. CC: &c
  19.  
  20. # Sounds
  21. WrongUsage: random.break
  22. DefaultSound: note.pling
  23.  
  24. # Command
  25. EnableCommand: /skyhigh-enable
  26. DisableCommand: /skyhigh-disable
  27.  
  28. # Variable
  29. Started: Skyhigh.Started
  30. command {@EnableCommand}:
  31. usage: /skyhigh-enable
  32. trigger:
  33. if player has permission "skyhigh.enable":
  34. if {@Started} is not set:
  35. set {@Started} to true:
  36. broadcast "{@Pre}{@CC} Skyhigh Enabled by: &l&f[%command sender%]... &l&bThe ground is not safe anymore."
  37. loop all players:
  38. execute console command "/playsound {@DefaultSound} %loop-player% ~ ~ ~ 1 1 1"
  39. else:
  40. message "{@Pre}{@CC} Already Enabled!"
  41. execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1"
  42. else:
  43. message "{@CC}No Permission. Contact server administrators if you think this is a error."
  44. execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1"
  45.  
  46. command {@DisableCommand}:
  47. usage /skyhigh-disable
  48. trigger:
  49. if player has permission "skyhigh.disable":
  50. if {@Started} is true:
  51. delete {@Started}
  52. broadcast "{@Pre}{@CC} Skyhigh Disabled by: &l&f[%command sender%]... &l&bThe ground is safe... for now"
  53. loop all players:
  54. execute console command "/playsound {@DefaultSound} %loop-player% ~ ~ ~ 1 1 1"
  55. else:
  56. message "{@Pre}{@CC} Already Disabled!"
  57. execute console command "/playsound {@WrongUsage} %command-sender% ~ ~ ~ 1 1 1"
  58. else:
  59. message "{@CC}No Permission. Contact server administrators if you think this is a error."
  60. execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1"
  61.  
  62. every 30 seconds:
  63. if {@Started} is true:
  64. loop all player:
  65. if loop-player's y-coordinate is between 0 and 101:
  66. damage the loop-player by 0.5 hearts
Advertisement
Add Comment
Please, Sign In to add comment