forked from alkarinv/ArenaCTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CaptureTheFlagConfig.yml
49 lines (47 loc) · 1.44 KB
/
CaptureTheFlagConfig.yml
1
2
3
4
5
6
7
8
9
10
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
configVersion: 2.0
## This should be places in the plugin directory
## for more help configuring see the wiki
## https://github.com/alkarinv/BattleArena/wiki
## Change this file to customize your event
CaptureTheFlag:
queue: true
type: CaptureTheFlag
prefix: "&8[CTF]&e"
command: ctf
database: ctf # or delete if you dont want wins/losses/top, needs BattleTracker
matchTime: 300 # in seconds
joinType: Queue ## Queue or JoinPhase
victoryCondition: HighestKills
nLives: infinite
nTeams: 2
teamSize: 1+
defaults: ## Global options for the entire match
options: [woolTeams, alwaysTeamNames]
preReqs: ## requirements to join
options: []
onEnter:
options: [storeAll]
onLeave:
options: [restoreAll]
onJoin:
options: [teleportWaitRoom, pvpOff, hunger=20]
onOpen:
options: [pvpOff]
onPrestart:
options: [pvpOff, deEnchant]
giveClass:
default: gladiator
onStart:
options: [pvpOn, teleportIn, hunger=20]
onComplete: ## Called when a player leaves, or no longer is supposed to spawn in arena
options: [teleportOut]
onFinish: ### effects after game is finished
options: []
onSpawn:
options: [health=20, hunger=20, respawnWithClass, giveItems]
items:
- compass: 1
onDeath:
options: [clearInventory, respawn]
winner:
options: [health=20, hunger=20]