SHARE
TWEET

Untitled

a guest Nov 12th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     prefix: &8[&6KoTH&8]
  3.    
  4.     no-permission: &cNo Permission
  5.    
  6.    
  7.     ffakoth-region-name2: koth2
  8.    
  9.     ffakoth-started: &aDe koth is gestart!
  10.    
  11.     ffakoth-stopped: &cDe Koth is gestopt!
  12.    
  13.     ffakoth-already-running: &cEr is al een Koth begonnen!
  14.    
  15.     ffakoth-no-longer-captured: &2%player% &7is niet meer de Koth aan het cappen!
  16.    
  17.     ffakoth-successfully-captured: &2%loop-value% &7Heeft de koth gecapped!
  18.    
  19.     ffakoth-timer: &6KoTH Timer: &2%{ffakoth::timer}% seconden
  20.    
  21.     ffakoth-command-reward: /give %loop-value% golden_apple 5
  22.    
  23.     ffakoth-command-reward2: /give %loop-value% sw2pot 2
  24.    
  25.  
  26. # ############################################### #
  27. #                                                 #
  28. # Niet aanpassen als je niet weet wat je doet aub #
  29. #                                                 #
  30. # ############################################### #
  31.  
  32. variables:
  33.     {ffakoth::started} = false
  34.    
  35. every 1 second:
  36.     if {ffakoth::started} is true:
  37.         if size of {ffacapping::*} is 1:
  38.             if {ffakoth::timer} > 0:
  39.                 remove 1 from {ffakoth::timer}
  40.             if {ffakoth::timer} = 240:
  41.                 loop {ffacapping::*}:
  42.                     broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &24:00 &7Resterend!"
  43.             if {ffakoth::timer} = 180:
  44.                 loop {ffacapping::*}:
  45.                     broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &23:00 &7Resterend!"
  46.             if {ffakoth::timer} = 120:
  47.                 loop {ffacapping::*}:
  48.                     broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &22:00 &7Resterend!"
  49.             if {ffakoth::timer} = 60:
  50.                 loop {ffacapping::*}:
  51.                     broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &21:00 &7Resterend!"
  52.             if {ffakoth::timer} = 30:
  53.                 loop {ffacapping::*}:
  54.                     broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &20:30 &7Resterend!"
  55.             if {ffakoth::timer} = 10:
  56.                 loop {ffacapping::*}:
  57.                     broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen! &20:10 &7Resterend!"
  58.             if {ffakoth::timer} = 0:
  59.                 set {ffakoth::started} to false
  60.                 loop {ffacapping::*}:
  61.                     broadcast "{@prefix} {@ffakoth-successfully-captured}"
  62.                     delete {ffacapping::*}
  63.                     execute console command "/kit ffawin %loop-value%"
  64.  
  65.                    
  66. on region enter:
  67.     if "%region%" contains "{@ffakoth-region-name2}":
  68.         if {ffakoth::started} is true:
  69.             if size of {ffacapping::*} is 0:
  70.                 add "%player%" to {ffacapping::*}
  71.                 set {ffakoth::timer} to 300
  72.                 broadcast "{@prefix} &2%player% &7is nu de Koth aan het cappen &25:00 &7Resterend!"
  73.                
  74. on region exit:
  75.     if {ffakoth::started} is true:
  76.         if {ffacapping::*} contains "%player%":
  77.             remove "%player%" from {ffacapping::*}
  78.             set {ffakoth::timer} to 300
  79.             broadcast "{@prefix} {@ffakoth-no-longer-captured}"
  80.            
  81. command /ffakoth [<text>]:
  82.     trigger:
  83.         if arg-1 is "start":
  84.             if player has permission "ffakoth.start" or "ffakoth.*":
  85.                 if {ffakoth::started} is false:
  86.                     set {ffakoth::started} to true
  87.                     broadcast "{@prefix} {@ffakoth-started}"
  88.                 else:
  89.                     send "{@prefix} {@ffakoth-already-running}"
  90.             else:
  91.                 send "{@no-permission}"
  92.         else if arg-1 is "stop":
  93.             if player has permission "koth.stop" or "koth.*":
  94.                 set {ffakoth::started} to false
  95.                 clear {ffacapping::*}
  96.                 broadcast "{@prefix} {@ffakoth-stopped}"
  97.             else:
  98.                 send "{@no-permission}"
  99.         else if arg-1 is "timer":
  100.             send "{@ffakoth-timer}"
  101.         else:
  102.             send "&cUsage: /ffakoth <start/stop/timer>"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top