Date: 2017/01/29 15:09:06 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# +------------------
# | Titles Menu For Donators
# +------------------
#
# Written for TrappedChest
# 2017 / 01/ 26
#
# Setup:
# - Change the material type to what you want
# - Change the dispay names in the titles to what you want
#
# --------------
#
# Edit This!
tc_titles_menu:
type: inventory
title: Game Titles
size: 27
slots:
- "[tc_titles_s1] [] [] [] [] [] [] [] []"
- "[tc_titles_s10] [tc_titles_s11] [tc_titles_s12] [tc_titles_s13] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
tc_titles_s1:
type: item
material: name_tag
display name: <&6>Adventurer
lore:
- "Get the free title of Adventurer"
tc_titles_s2:
type: item
material: name_tag
display name: <&6>Merchant
lore:
- "Get the free title of Merchant"
tc_titles_s3:
type: item
material: name_tag
display name: <&6>Beggar
lore:
- "Get the free title of Beggar"
tc_titles_s4:
type: item
material: name_tag
display name: <&6>Sheep
lore:
- "Get the free title of Sheep"
tc_titles_s10:
type: item
material: name_tag
display name: <&6>Titles A to D
lore:
- "Donator Titles "
tc_titles_s11:
type: item
material: name_tag
display name: <&6>Titles E to I
lore:
- "Donator Titles"
tc_titles_s12:
type: item
material: name_tag
display name: <&6>Titles J to R
lore:
- "Donator Titles"
tc_titles_s13:
type: item
material: name_tag
display name: <&6>Titles S to Z
lore:
- "Donator Titles"
tc_titles_s27:
type: item
material: name_tag
display name: <&6>Titles S to Z
lore:
- "Donator Titles"
tc_titles_s1_command:
type: command
name: titles
description: Prefix Titles
usage: /titles
permission: denizen.titles.menu
script:
- inventory open d:in@tc_titles_menu
tc_titles_handler:
type: world
events:
on player clicks in tc_titles_menu:
- determine cancelled
on player drags tc_titles_menu:
- determine cancelled
on player clicks tc_titles_s1 in tc_titles_menu:
- execute as_server "pex user <player.name> prefix [&6King]"
- narrate "Prefix changed to King"
- determine cancelled
on player clicks tc_titles_s10 in tc_titles_menu:
- wait 1
- inventory open d:in@tc_titles_menu_a2d
on player clicks tc_titles_s11 in tc_titles_menu:
- wait 1
- inventory open d:in@tc_titles_menu_e2i
on player clicks tc_titles_s12 in tc_titles_menu:
- wait 1
- inventory open d:in@tc_titles_menu_j2r
on player clicks tc_titles_s13 in tc_titles_menu:
- wait 1
- inventory open d:in@tc_titles_menu_s2z