Facebook
From Denim Lion, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 162
  1. options:
  2.         time_antylogout: 30
  3.         material: 35:red
  4.         reloading: 0.3
  5.         region: spawn
  6.  
  7. on damage:
  8.         set {antylogout::%attacker%} to {@time_antylogout}
  9.         set {antylogout::%victim%} to {@time_antylogout}
  10.  
  11. every {@reloading} second:
  12.         loop all players:
  13.                 if {antylogout::%loop-player%} is not set:
  14.                         if "%region at loop-player%" contains "{@region}":
  15.                                 loop all blocks in radius 6 around loop-player:
  16.                                         if loop-block is {@material}:
  17.                                                 set block 1 above loop-block to air
  18.                                                 set block 2 above loop-block to air
  19.                                                 set block 3 above loop-block to air
  20.                                                 set block 4 above loop-block to air
  21.                                                 set block 5 above loop-block to air
  22.                                                 set block 6 above loop-block to air
  23.                                                 set block 7 above loop-block to air
  24.                                                 set block 8 above loop-block to air
  25.                 if {antylogout::%loop-player%} < 0:
  26.                         if "%region at loop-player%" contains "{@region}":
  27.                                 loop all blocks in radius 6 around loop-player:
  28.                                         if loop-block is {@material}:
  29.                                                 set block 1 above loop-block to air
  30.                                                 set block 2 above loop-block to air
  31.                                                 set block 3 above loop-block to air
  32.                                                 set block 4 above loop-block to air
  33.                                                 set block 5 above loop-block to air
  34.                                                 set block 6 above loop-block to air
  35.                                                 set block 7 above loop-block to air
  36.                                                 set block 8 above loop-block to air
  37.                         delete {antylogout::%loop-player%}
  38.                         send action bar with "&a&mANTY LOGOUT" to loop-player
  39.                 if {antylogout::%loop-player%} is set:
  40.                         remove {@reloading} from {antylogout::%loop-player%}
  41.                         if "%region at loop-player%" contains "{@region}":
  42.                                 loop all blocks in radius 3 around loop-player:
  43.                                         if loop-block is {@material}:
  44.                                                 set block 1 above loop-block to {@material}
  45.                                                 set block 2 above loop-block to {@material}
  46.                                                 set block 3 above loop-block to {@material}
  47.                         send action bar with "&cANTY LOGOUT" to loop-player
  48.                         wait 10 ticks
  49.                         send action bar with "&4ANTY LOGOUT" to loop-player