1+ package altherneum .fr .chat ;
2+
3+ import org .bukkit .OfflinePlayer ;
4+
5+ import altherneum .fr .menu .shop .specials .bonus .bonus ;
6+ import altherneum .fr .system .tags ;
7+
8+ import java .io .IOException ;
9+ import java .text .ParseException ;
10+
11+ public class prefixTag {
12+ public static String prefixTag (OfflinePlayer offlinePlayer ) throws IOException , ParseException {
13+ String prefix = "" ;
14+
15+ if (tags .hasTags (offlinePlayer , tags .TagsList .Admin )) {
16+ prefix += "" ;
17+ } else if (tags .hasTags (offlinePlayer , tags .TagsList .Creatif )
18+ || tags .hasTags (offlinePlayer , tags .TagsList .Builder )
19+ || tags .hasTags (offlinePlayer , tags .TagsList .Build )) {
20+ prefix += "" ;
21+ } else if (tags .hasTags (offlinePlayer , tags .TagsList .Messages )
22+ || tags .hasTags (offlinePlayer , tags .TagsList .Moderation )) {
23+ prefix += "" ;
24+ } else if (tags .hasTags (offlinePlayer , tags .TagsList .Beta )
25+ || tags .hasTags (offlinePlayer , tags .TagsList .Test )) {
26+ prefix += "" ;
27+ } else if (tags .hasTags (offlinePlayer , tags .TagsList .Joueur )) {
28+ prefix += "" ;
29+ }
30+
31+ if (tags .hasTags (offlinePlayer , tags .TagsList .YouTube )) {
32+ prefix += "" ;
33+ }
34+
35+ if (!bonus .isObsoletBonus (offlinePlayer , bonus .BonusList .VIPPlus )) {
36+ prefix += "" ;
37+ } else if (!bonus .isObsoletBonus (offlinePlayer , bonus .BonusList .VIP )) {
38+ prefix += "" ;
39+ }
40+
41+ if (tags .hasTags (offlinePlayer , tags .TagsList .Survie )) {
42+ prefix += "" ;
43+ }
44+
45+ return prefix ;
46+ }
47+
48+ public static String prefixTagDiscord (OfflinePlayer offlinePlayer ) throws IOException , ParseException {
49+ String prefix = "" ;
50+ if (tags .hasTags (offlinePlayer , tags .TagsList .Admin )) {
51+ prefix += "\uD83D \uDC51 " ;
52+ }
53+ if (tags .hasTags (offlinePlayer , tags .TagsList .Creatif )
54+ || tags .hasTags (offlinePlayer , tags .TagsList .Builder )
55+ || tags .hasTags (offlinePlayer , tags .TagsList .Build )
56+ || tags .hasTags (offlinePlayer , tags .TagsList .Messages )
57+ || tags .hasTags (offlinePlayer , tags .TagsList .Moderation )) {
58+ prefix += "\uD83D \uDC77 " ;
59+ }
60+ if (tags .hasTags (offlinePlayer , tags .TagsList .Beta )
61+ || tags .hasTags (offlinePlayer , tags .TagsList .Test )) {
62+ prefix += "\uD83D \uDEA7 " ;
63+ }
64+ if (!bonus .isObsoletBonus (offlinePlayer , bonus .BonusList .VIP )
65+ || !bonus .isObsoletBonus (offlinePlayer , bonus .BonusList .VIPPlus )) {
66+ prefix += "\uD83C \uDF1F " ;
67+ }
68+ prefix += " " ;
69+ return prefix ;
70+ }
71+ }
0 commit comments