Date: 2020/04/06 20:33:04 UTC-07: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
WingsItem:
type: item
material: diamond_boots
enchantments:
- DURABILITY:5
- PROTECTION:5
lore:
- "<&7>Fly I"
WingsHandler:
type: world
debug: false
events:
on player walks:
- if <player.has_permission[essentials.fly]>:
- flag player canfly
- queue clear
- if <player.has_town.not>:
- queue clear
- if "<player.inventory.slot[37].contains[WINGSITEM]>" && <player.location.has_town>:
- if <player.location.town.contains[<player.town>]>:
- flag player canfly
- adjust <player> can_fly:true
on player steps on air:
- if <player.has_permission[essentials.fly]>:
- queue clear
- if "<player.inventory.slot[37].contains[WINGSITEM].not>":
- adjust <player> can_fly:false
- flag player canfly:!
- if <player.has_flag[flypvp]>:
- adjust <player> can_fly:false
- queue clear
- if <player.has_flag[canfly].not>:
- adjust <player> can_fly:false
- queue clear
- if <player.town.has_pvp>:
- flag player canfly:!
- adjust <player> can_fly:false
- if <player.location.has_town.not>:
- flag player canfly:!
- if <player.location.has_town> && <player.location.town.contains[<player.town>].not>:
- flag player canfly:!