Ranghi ​
Module info | |
---|---|
Configuration | ranks.yml |
Manager | RankManager |
Support | 1.8+ |
Free version | âś” |
Proxy-configurable | ❌ |
ChatPlugin presents an integrated rank system which offers custom name tags and is used to add features to other modules, like the tablist. Every rank has different settings:
- a prefix ("&9[Founder] ") which may be displayed in chat messages
- a suffix (" &4[**]") which may be displayed in chat messages
- a tag, composed of a prefix, a suffix and a name color ("&9[F] &6Remigio07_ &4[**]"), which may be displayed in tablist
- a chat color which will colorize messages sent by that rank's members
- a description which may be displayed when hovering a member's rank
- max
/tempban
and/mute
durations, for Staff members only
To assign a rank to a player, ChatPlugin checks if they have the permission required by the first rank specified in the file, if so it goes on checking other ranks' permissions until it finds their highest rank and applies it.
Default configuration (ranks.yml
in 1.8+)
ranks:
settings:
default-rank-id: user
permission-format: chatplugin.ranks.{0}
sorting:
enabled: true
from-tablist-top: true
user:
display-name: User
prefix: '&8[&f&lUser&8] &f'
suffix: ''
tag:
prefix: ''
suffix: ''
name-color: ''
descriptions:
english: |-
&aRank: &f&lUser
&aType: &fdefault
italian: |-
&aRank: &f&lUser
&aTipo: &fpredefinito
vip:
display-name: VIP
prefix: '&8[&d&lVIP&8] &f'
suffix: ' &a[*]'
tag:
prefix: '&8[&d&lV&8] &f'
suffix: ' &a[*]'
name-color: ''
descriptions:
english: |-
&aRank: &d&lVIP
&aType: &fpaid &o($4.99)
italian: |-
&aRank: &d&lVIP
&aTipo: &fpagato &o($4.99)
staff:
display-name: Staff
prefix: '&8[&b&lStaff&8] &f'
suffix: ' &4[*]'
tag:
prefix: '&8[&b&lS&8] &f'
suffix: ' &4[*]'
name-color: '&f'
chat-color: '&f'
descriptions:
english: |-
&aRank: &b&lStaff
&aType: &fadmin.
italian: |-
&aRank: &b&lStaff
&aTipo: &famministr.
max-punishment-durations:
ban: 14d
mute: 14d
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
Configurazione ​
The following snippet of code represents and explains the ranks' configuration.
ranks:
settings:
default-rank-id: user # read below
permission-format: chatplugin.ranks.{0} # format used to check ranks' permissions
sorting:
enabled: true # whether to sort ranks in the tablist
from-tablist-top: true # whether to sort ranks from the tablist's top or bottom
# ...default ranks...
2
3
4
5
6
7
8
Players who do not have the permission for any rank will receive the rank whose ID is specified at default-rank-id
.
Adding ranks ​
To add a new rank, you just need to specify its ID and its descriptions. Note that the descriptions support multi line strings. Other properties are optional and will default to an empty string if not specified. The ID has to respect the following pattern: ^[a-zA-Z0-9-_]{2,14}$
.
# ...ranks' settings...
# ...default ranks...
new-rank: # ID - required
display-name: Mod
prefix: '&8[&3&lMod&8] &f'
suffix: ' &4[*]'
tag:
prefix: '&8[&3&lM&8] &f'
suffix: ' &4[*]'
name-color: '&f'
chat-color: '&f'
descriptions:
english: |- # main language's translation - required
&aRank: &3&lMod
&aType: &fadmin.
italian: |- # other language's translation - optional
&aRank: &3&lMod
&aTipo: &famministr.
max-punishment-durations:
ban: 30d
mute: 30d
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Refer to the Getting started/Syntax/Timestamps page to find out the timestamps specifiable at ban
and mute
.
Ads ​
One of the plugin's features is the ads module. Every ad can be set up so that it will not show up to certain ranks. This is useful for example if you want to hide your store's ad to who has already made a donation.
Placeholders ​
Every player's rank has a set of placeholders available which are described here.
/rankinfo
command ​
It is possible to check a player's rank using the /rankinfo
command:
Refer to the Getting started/Commands/User page for more info.
ChatPlugin - Un plugin completo ma leggero che gestisce semplicemente troppe funzionalitĂ !
Questa wiki è attualmente aggiornata alla versione 1.9.10.
© 2024  Remigio07
Si prega di segnalare imprecisioni ed errori di ortografia come descritto a Home/Reporting issues.