Date: 2019/11/16 08:26:15 UTC-08:00
Type: Denizen Script
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
50
51
52
53
54
55
56
57
58
59
60
61
tournament-triggers:
type: world
events:
on player breaks block in:tournament-protect:
- determine cancelled
on player places block in:tournament-protect:
- determine cancelled
on entity dies in:tournament:
- if <context.entity.is_player>:
- flag <context.entity> tournamentDeaths:+:1
- if <context.entity.flag[tournamentDeaths]> == 1:
- execute as_server "rg flag tournament-bend bending deny"
- heal <context.entity>
- heal <context.damager>
- execute as_server "tp <context.entity.name> 866 38 1632"
- execute as_server "tp <context.damager.name> 888 38 1637"
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] <&b><context.damager.name> has killed <context.entity.name>"
- wait 1s
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] Match starting in 3<&b>
- wait 1s
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] Match starting in 2<&b>
- wait 1s
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] Match starting in 1<&b>
- wait 1s
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] Go!<&b>
- execute as_server "rg flag tournament-bend bending allow"
- determine KEEP_INV
- determine cancelled
- if <context.entity.flag[tournamentDeaths]> == 2:
- flag <context.entity> tournamentDeaths:0
- flag <context.damager> tournamentDeaths:0
- heal <context.entity>
- heal <context.damager>
- execute as_player "ma force end tournament"
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] <&b><context.damager.name> has killed <context.entity.name> and won this match!"
- execute as_server "tlb reset arenas tournament-arena"
- determine cancelled
match:
type: command
name: match
description: Enter a tournament
usage: /match
script:
- if <player.has_permission[tlb.tournament.manager].global>:
- execute as_server "broadcastworld arenas <&6>[<&b>TLB TOURNAMENT<&6>] Match starting between <context.args.get[1]> and <context.args.get[2]>!<&b>
- wait 3s
- execute as_server "sudo <context.args.get[1]> ma join tournament"
- execute as_server "sudo <context.args.get[1]> class"
- execute as_server "b unbind combustion <context.args.get[1]>"
- wait 1s
- execute as_server "sudo <context.args.get[2]> ma join tournament"
- execute as_server "sudo <context.args.get[2]> class"
- execute as_server "b unbind combustion <context.args.get[2]>"
- wait 1s
- execute as_server "sudo <context.args.get[1]> ma ready"
- execute as_server "sudo <context.args.get[2]> ma ready"
- wait 1s
- execute as_server "tp <context.args.get[1]> 866 38 1632"
- execute as_server "tp <context.args.get[2]> 888 38 1637"