This repository has been archived by the owner on Mar 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
263 lines (252 loc) · 7.32 KB
/
README
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
[B]Roles[/B] - The user-driven group selection plugin.
[B]Version:[/B] v1.1
[b]You need at least [URL='http://forums.bukkit.org/threads/4723/']GroupManager[/URL] 1.0 alpha-5 to use this![/b]
[B]Features:[/B]
¥ Easy role categorization
¥ Good integration with GroupManager
¥ Let your users choose their roles in server, such as:factions, jobs, skills and etc. No need to do it for them.
¥ Time based "leave", so your users can't join-leave groups all the time. They need to wait the amount of hours you choose to leave a role.
¥ Multiworld support!
[B]Commands[/B]:
[CODE]commands:
joinrole:
description: Join a role of your choice.
usage: /<command> [category] [group]
permission: roles.joinrole
leaverole:
description: Leave a role of your choice.
usage: /<command> [category] [group]
permission: roles.leaverole
myroles:
description: List roles you have.
usage: /<command> [category]
permission: roles.myroles
whoroles:
description: List somebody else roles.
usage: /<command> <player> [category]
permission: roles.whoroles
roles:
description: Reload Roles configuration
usage: /<command>
permission: roles.roles[/CODE]
This system is quite simple, yet functional. Hope it fits most people needs.
All commands can be done only by players.
All groups are added as a user subGroup, except when the user join a role of the main category. [b]Those roles really change the user group when joined.[/b]
[B]Config file:[/B]
[CODE]world:
categories:
faction:
limit: 1
time: 168
job:
limit: 1
time: 24
subjob:
limit: 2
time: 12
skill:
limit: 4
time: 1
setting:
defaultgroup: Peasant
maincategory: faction
[/CODE]
¥ [b]world[/b] is the world name. This plugin respects GM mirroring, so the name of the world must be the the same of the real world which you have data on GroupManager.
¥ [b]faction,job,subjob,skill[/b] are the categories that you use on group specification. You can create as many as you want like that.(use always lower case, please)
¥ [b]limit[/b] is the quantity of roles of that category each user can join in. [i]subjob[/i] is 2, so everyuser can join in two [i]subjobs[/i] role.
¥ [b]time[/b] is the amount of time, in hours, a player need to wait before leaving a group that he joined of such category. The usual is the bigger the role, the bigger the time. No need to explain that.
¥ [b] maincategory[/b] You can optionally set a category for users to choose their main groups. When a group change a role of main category, he will have his prefix, suffix, build and other variables affected, just like he get physically changed groups(instead of subgrouping).
¥ [b]defaultgroup[/b] will tell Roles to which group should take a user if he leaves a group of the main category. So if you leave your faction, you will be redirected to Peasant group. No need for this if you don't use main category.
[B]Got it! So, where are the groups?[/B]
In your GroupManagerÉ for every group, there are special variables you put in them, where Roles will read and decide what to do.
These nodes go inside the INFO node for every group you want to set as a Role.
¥ [B]roles-category: faction[/B] - Type accepted: String - Explanation: this is setting a group for a role called faction
¥ [B]roles-requirement: Miner[/B] - Type accepted: List/String - Explanation: this telling you that for you to join this role, you must have joined a role(group) called Miner.
Every entry of the list is considered a full requirement, so you just need to fulfill one of the requirements to be able to join.
Example:
[CODE]roles-requirement:
- BlueFaction
- RedFaction[/CODE]
To enforce multiple roles as requirement, you put role names in same entry separated by the character '&', just like this:
[CODE]roles-requirement: Fighter&SuperCart[/CODE]
Example of groups.yml file on GroupManager, using Roles:
[CODE]groups:
Default:
default: true
permissions:
- essentials.help
- essentials.home
- essentials.motd
- essentials.sethome
- essentials.spawn
inheritance: []
info:
prefix: ''
build: false
suffix: ''
SemiAdmin:
default: false
permissions:
- +groupmanager.mandemote
- +groupmanager.manpromote
- -groupmanager.*
- '*'
inheritance:
- moderator
info:
prefix: '&c'
build: true
suffix: SemiAdmin
RedFaction:
default: false
permissions: []
inheritance:
- peasant
info:
prefix: '&c'
roles-category: faction
build: true
suffix: Red
Farmer:
default: false
permissions:
- essentials.kit
- essentials.kit.farmer
- essentials.spawnmob
inheritance: []
info:
roles-requirement:
- BlueFaction
- RedFaction
prefix: ''
roles-category: job
build: false
suffix: ''
Healer:
default: false
permissions:
- essentials.kit
- essentials.kit.healer
- essentials.heal
inheritance: []
info:
roles-requirement:
- BlueFaction
- RedFaction
prefix: ''
roles-category: job
build: false
suffix: ''
Fighter:
default: false
permissions:
- essentials.kit
- essentials.kit.fighter
inheritance: []
info:
prefix: ''
roles-category: skill
build: false
suffix: ''
Admin:
default: false
permissions:
- '*'
inheritance:
- semiadmin
info:
prefix: ''
build: true
suffix: ''
Miner:
default: false
permissions:
- essentials.kit
- essentials.kit.miner
- flashlight.regular
inheritance: []
info:
roles-requirement:
- BlueFaction
- RedFaction
prefix: ''
roles-category: job
build: false
suffix: ''
FlyingMan:
default: false
permissions:
- nocheat.moving
inheritance: []
info:
roles-requirement: Fighter&SuperCart
prefix: ''
roles-category: skill
build: false
suffix: ''
Peasant:
default: false
permissions:
- roles.joinrole
- roles.leaverole
- roles.myroles
inheritance:
- default
info:
prefix: '&e'
build: true
suffix: Peasant
BlueFaction:
default: false
permissions: []
inheritance:
- peasant
info:
prefix: '&d'
roles-category: faction
build: true
suffix: Blue
Railer:
default: false
permissions:
- essentials.kit
- essentials.kit.railer
inheritance: []
info:
roles-requirement: Miner
prefix: ''
roles-category: subjob
build: false
suffix: ''
SuperCart:
default: false
permissions:
- minecartmania.*
inheritance: []
info:
roles-requirement: Railer
prefix: ''
roles-category: skill
build: false
suffix: ''
Moderator:
default: false
permissions:
- essentials.tp
- essentials.tphere
- essentials.item
- essentials.give
inheritance:
- default
info:
prefix: '&c'
build: true
suffix: Mod[/CODE]
[B]Latest Build Download:[/B]
https://github.com/downloads/gmcouto/Roles/Roles.jar
Changelog:
Version 1.1
¥ Fixed a bug ClassNotFound exception with newer CB builds.
===========================================
Source:
https://github.com/gmcouto/Roles