Kacperski89

ExtraPVP

Feb 16th, 2016
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # EXTRA PVP = By Sweey216_
  2. #- - - - - -- - - - - ----- - - - - - - - - -  - - - - - #
  3. #                     KONFIGURACJA                       #
  4. options:
  5.     # UPRAWNIENIA
  6.    
  7.     perm: cagepvp.manage
  8.    
  9.     perm_message: &4Brak uprawnien.
  10.    
  11.     # BLOKI
  12.    
  13.     block: white wool #Blok 1
  14.     x: 1
  15.     y: 60
  16.     z: 1
  17.  
  18.     #KLATKA
  19.    
  20.     location-cage: x, y, z
  21.  
  22.     teleport: yes
  23.  
  24.     add item slabe: yes
  25.    
  26.     add item mocne: no
  27. #- ---- - - - - - - - - - - --  - - - - -  - - - - - - - #
  28. on skript load:
  29.     send "CagePvP > Ladowanie skryptu..." to console
  30.     download "http://pastebin.com/raw/Bf6sq7P3" to "plugins/skript/scripts/%script's name%"
  31.     send "CagePvP > Skrypt wlaczony!"
  32. command /cage [<text="puste">]:
  33.     trigger:
  34.         if player has permission "{@perm}":
  35.             if arg 1 is "puste":
  36.                 send "&8| &3&lCAGE&6&lPVP &8|"
  37.                 send "&8| &c/cage utworz  &8|"
  38.                 send "&8| &c/cage usun    &8|"
  39.                 send "&8| &3&lCAGE&6&lPVP &8|"
  40.             if arg 1 is "utworz":
  41.                 loop 30 times:
  42.                     wait a second
  43.                     set {_loopPLUS} to loop-number
  44.                     set {cblock-%loop-integer%} to {@x}+{_loopPLUS}
  45.                     set block at {cblock-%loop-integer%} to {@block}
  46.                     add 1 to {_create.time.loop.cage}
  47.                 if {_create.time.loop.cage} is 30:
  48.                     send "&8• &6Klatka &azostala utworzona"
  49.                     clear {_create.time.loop.cage}
  50.                     stop
  51.             if arg 1 is "usun":
  52.                 loop 30 times:
  53.                     wait a second
  54.                     delete block at {cblock-%loop-integer%}
  55.                     add 1 to {_delete.time.loop.cage}
  56.                 if {_delete.time.loop.cage} is 30:
  57.                     send "&8• &6Klatka &czostala usunieta"
  58.                     clear {_delete.time.loop.cage}
  59.                     stop
  60.             if arg 1 is "autor":
  61.                 send "&6Autorem skryptu jest &aSweey216_"
  62.                 stop
  63.         else:
  64.             send "{@perm_message}"
  65.             stop
  66. command /cagetp:
  67.     trigger:
  68.         if "{@teleport}" is "yes":
  69.             teleport player to {@location-cage}
  70.             if "{@add item slabe}" is "yes":
  71.                 add golden apple to player
  72.             if "{@add item mocne}" is "yes":
  73.                 add enchanted golden apple to player
  74. on damage of player:
  75.     play raw sound "damage.hit1" at attacker
  76. # P.S: Kocham Klaudie ♥
Add Comment
Please, Sign In to add comment