Advertisement
FrostedWeFall

FactionsFly

Nov 27th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. options:
  2.  
  3.  
  4. #Flying Stuff
  5.  
  6. Fly Permission: pun.fly
  7. Fly Command: /fly
  8. Fly Message Enable: &a&l(!) &7Flying mode has been &a&l&nENABLED
  9. Fly Message Disable: &c&l(!) &7Flying mode has been &c&l&nDISABLED
  10. Fly Message No Permission: &cNo Permission
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. on command "{@Fly Command}":
  63. if player has permission "{@Fly Permission}":
  64. if {void.fly.mode.%player%} is "True":
  65. message "{@Fly Message Disable}"
  66. set {void.fly.mode.%player%} to "False"
  67. set player's flight mode to false
  68. else:
  69. message "{@Fly Message Enable}"
  70. set {void.fly.mode.%player%} to "True"
  71. set player's flight mode to true
  72.  
  73. else:
  74. message "{@Fly Message No Permission}"
  75. cancel event
  76.  
  77. on damage:
  78. if {void.fly.mode.%attacker%} is "True":
  79. set {void.fly.mode.%attacker%} to "False"
  80. send "{@Fly Message Disable}" to attacker
  81. set attacker's flight mode to false
  82.  
  83.  
  84.  
  85. if {void.fly.mode.%victim%} is "True":
  86. set {void.fly.mode.%victim%} to "False"
  87. send "{@Fly Message Disable}" to victim
  88. set victim's flight mode to false
  89.  
  90.  
  91.  
  92.  
  93. on any movement:
  94. if player has permission "{@Fly Permission}":
  95. if {void.fly.mode.%player%} is "True":
  96. if block below player is air:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement