Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &8[&6KoTH&8]
- no-permission: &cNo Permission
- ffakoth-region-name2: koth2
- ffakoth-started: &aDe koth is gestart!
- ffakoth-stopped: &cDe Koth is gestopt!
- ffakoth-already-running: &cEr is al een Koth begonnen!
- ffakoth-no-longer-captured: &2%player% &7is niet meer de Koth aan het cappen!
- ffakoth-successfully-captured: &2%loop-value% &7Heeft de koth gecapped!
- ffakoth-timer: &6KoTH Timer: &2%{ffakoth::timer}% seconden
- ffakoth-command-reward: /give %loop-value% golden_apple 5
- ffakoth-command-reward2: /give %loop-value% sw2pot 2
- # ############################################### #
- # #
- # Niet aanpassen als je niet weet wat je doet aub #
- # #
- # ############################################### #
- variables:
- {ffakoth::started} = false
- every 1 second:
- if {ffakoth::started} is true:
- if size of {ffacapping::*} is 1:
- if {ffakoth::timer} > 0:
- remove 1 from {ffakoth::timer}
- if {ffakoth::timer} = 240:
- loop {ffacapping::*}:
- broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &24:00 &7Resterend!"
- if {ffakoth::timer} = 180:
- loop {ffacapping::*}:
- broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &23:00 &7Resterend!"
- if {ffakoth::timer} = 120:
- loop {ffacapping::*}:
- broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &22:00 &7Resterend!"
- if {ffakoth::timer} = 60:
- loop {ffacapping::*}:
- broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &21:00 &7Resterend!"
- if {ffakoth::timer} = 30:
- loop {ffacapping::*}:
- broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen &20:30 &7Resterend!"
- if {ffakoth::timer} = 10:
- loop {ffacapping::*}:
- broadcast "{@prefix} &2%loop-value% &7is de Koth aan het cappen! &20:10 &7Resterend!"
- if {ffakoth::timer} = 0:
- set {ffakoth::started} to false
- loop {ffacapping::*}:
- broadcast "{@prefix} {@ffakoth-successfully-captured}"
- delete {ffacapping::*}
- execute console command "/kit ffawin %loop-value%"
- on region enter:
- if "%region%" contains "{@ffakoth-region-name2}":
- if {ffakoth::started} is true:
- if size of {ffacapping::*} is 0:
- add "%player%" to {ffacapping::*}
- set {ffakoth::timer} to 300
- broadcast "{@prefix} &2%player% &7is nu de Koth aan het cappen &25:00 &7Resterend!"
- on region exit:
- if {ffakoth::started} is true:
- if {ffacapping::*} contains "%player%":
- remove "%player%" from {ffacapping::*}
- set {ffakoth::timer} to 300
- broadcast "{@prefix} {@ffakoth-no-longer-captured}"
- command /ffakoth [<text>]:
- trigger:
- if arg-1 is "start":
- if player has permission "ffakoth.start" or "ffakoth.*":
- if {ffakoth::started} is false:
- set {ffakoth::started} to true
- broadcast "{@prefix} {@ffakoth-started}"
- else:
- send "{@prefix} {@ffakoth-already-running}"
- else:
- send "{@no-permission}"
- else if arg-1 is "stop":
- if player has permission "koth.stop" or "koth.*":
- set {ffakoth::started} to false
- clear {ffacapping::*}
- broadcast "{@prefix} {@ffakoth-stopped}"
- else:
- send "{@no-permission}"
- else if arg-1 is "timer":
- send "{@ffakoth-timer}"
- else:
- send "&cUsage: /ffakoth <start/stop/timer>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement