2
2
3
3
import com .eternalcode .core .configuration .AbstractConfigurationFile ;
4
4
import com .eternalcode .core .database .DatabaseConfig ;
5
+ import com .eternalcode .core .database .DatabaseSettings ;
5
6
import com .eternalcode .core .feature .afk .AfkConfig ;
7
+ import com .eternalcode .core .feature .afk .AfkSettings ;
6
8
import com .eternalcode .core .feature .automessage .AutoMessageConfig ;
9
+ import com .eternalcode .core .feature .automessage .AutoMessageSettings ;
7
10
import com .eternalcode .core .feature .butcher .ButcherConfig ;
11
+ import com .eternalcode .core .feature .butcher .ButcherSettings ;
8
12
import com .eternalcode .core .feature .chat .ChatConfig ;
13
+ import com .eternalcode .core .feature .chat .ChatSettings ;
9
14
import com .eternalcode .core .feature .helpop .HelpOpConfig ;
15
+ import com .eternalcode .core .feature .helpop .HelpOpSettings ;
10
16
import com .eternalcode .core .feature .home .HomesConfig ;
17
+ import com .eternalcode .core .feature .home .HomesSettings ;
11
18
import com .eternalcode .core .feature .jail .JailConfig ;
19
+ import com .eternalcode .core .feature .jail .JailSettings ;
12
20
import com .eternalcode .core .feature .lightning .LightningConfig ;
13
- import com .eternalcode .core .feature .randomteleport .RandomTeleportSettingsImpl ;
21
+ import com .eternalcode .core .feature .lightning .LightningSettings ;
22
+ import com .eternalcode .core .feature .randomteleport .RandomTeleportConfig ;
23
+ import com .eternalcode .core .feature .randomteleport .RandomTeleportSettings ;
14
24
import com .eternalcode .core .feature .repair .RepairConfig ;
25
+ import com .eternalcode .core .feature .repair .RepairSettings ;
15
26
import com .eternalcode .core .feature .serverlinks .ServerLinksConfig ;
27
+ import com .eternalcode .core .feature .serverlinks .ServerLinksSettings ;
16
28
import com .eternalcode .core .feature .spawn .SpawnJoinConfig ;
29
+ import com .eternalcode .core .feature .spawn .SpawnJoinSettings ;
17
30
import com .eternalcode .core .feature .spawn .SpawnSettings ;
18
31
import com .eternalcode .core .feature .teleportrequest .TeleportRequestConfig ;
32
+ import com .eternalcode .core .feature .teleportrequest .TeleportRequestSettings ;
19
33
import com .eternalcode .core .feature .vanish .VanishConfig ;
20
34
import com .eternalcode .core .feature .vanish .VanishSettings ;
21
35
import com .eternalcode .core .feature .warp .WarpConfig ;
36
+ import com .eternalcode .core .feature .warp .WarpSettings ;
22
37
import com .eternalcode .core .injector .annotations .Bean ;
23
38
import com .eternalcode .core .injector .annotations .component .ConfigurationFile ;
24
39
import eu .okaeri .configs .OkaeriConfig ;
41
56
"# Source Code: https://github.com/EternalCodeTeam/EternalCore" ,
42
57
"#" ,
43
58
})
44
-
45
59
@ ConfigurationFile
46
60
public class PluginConfiguration extends AbstractConfigurationFile {
47
61
48
62
@ Comment ("# Whether the player should receive information about new plugin updates upon joining the server" )
49
63
public boolean shouldReceivePluginUpdates = true ;
50
64
65
+ @ Bean (proxied = DatabaseSettings .class )
51
66
@ Comment ("" )
52
67
@ Comment ("# Database Configuration" )
53
68
@ Comment ("# Settings responsible for the database connection" )
54
- public DatabaseConfig database = new DatabaseConfig ();
69
+ DatabaseConfig database = new DatabaseConfig ();
55
70
71
+ @ Bean (proxied = SpawnJoinSettings .class )
56
72
@ Comment ("" )
57
73
@ Comment ("# Spawn & Join Configuration" )
58
74
@ Comment ("# Settings responsible for player spawn and join behavior" )
59
- public SpawnJoinConfig join = new SpawnJoinConfig ();
75
+ SpawnJoinConfig join = new SpawnJoinConfig ();
60
76
61
- @ Bean
77
+ @ Bean ( proxied = TeleportRequestSettings . class )
62
78
@ Comment ("" )
63
79
@ Comment ("# Teleport Request Configuration" )
64
80
@ Comment ("# Settings for teleport requests between players" )
65
- public TeleportRequestConfig teleportAsk = new TeleportRequestConfig ();
81
+ TeleportRequestConfig teleportAsk = new TeleportRequestConfig ();
66
82
67
83
@ Bean
68
84
@ Comment ("" )
@@ -94,17 +110,17 @@ public Duration teleportationTimeToSpawn() {
94
110
}
95
111
}
96
112
97
- @ Bean
113
+ @ Bean ( proxied = RandomTeleportSettings . class )
98
114
@ Comment ("" )
99
115
@ Comment ("# Random Teleport Configuration" )
100
116
@ Comment ("# Settings for random teleportation feature" )
101
- public RandomTeleportSettingsImpl randomTeleport = new RandomTeleportSettingsImpl ();
117
+ RandomTeleportConfig randomTeleport = new RandomTeleportConfig ();
102
118
103
- @ Bean
119
+ @ Bean ( proxied = HomesSettings . class )
104
120
@ Comment ("" )
105
121
@ Comment ("# Homes Configuration" )
106
122
@ Comment ("# Settings for player home management" )
107
- public HomesConfig homes = new HomesConfig ();
123
+ HomesConfig homes = new HomesConfig ();
108
124
109
125
@ Comment ("" )
110
126
@ Comment ("# Sound Configuration" )
@@ -132,21 +148,23 @@ public static class Sounds extends OkaeriConfig {
132
148
public float afterChatMessagePitch = 1F ;
133
149
}
134
150
135
- @ Bean
151
+ @ Bean ( proxied = ChatSettings . class )
136
152
@ Comment ("" )
137
153
@ Comment ("# Chat Configuration" )
138
154
@ Comment ("# Settings for chat management and formatting" )
139
- public ChatConfig chat = new ChatConfig ();
155
+ ChatConfig chat = new ChatConfig ();
140
156
157
+ @ Bean (proxied = HelpOpSettings .class )
141
158
@ Comment ("" )
142
159
@ Comment ("# HelpOp Configuration" )
143
160
@ Comment ("# Settings for the help operator system" )
144
- public HelpOpConfig helpOp = new HelpOpConfig ();
161
+ HelpOpConfig helpOp = new HelpOpConfig ();
145
162
163
+ @ Bean (proxied = RepairSettings .class )
146
164
@ Comment ("" )
147
165
@ Comment ("# Repair Configuration" )
148
166
@ Comment ("# Settings for item repair functionality" )
149
- public RepairConfig repair = new RepairConfig ();
167
+ RepairConfig repair = new RepairConfig ();
150
168
151
169
@ Comment ("" )
152
170
@ Comment ("# Format Configuration" )
@@ -158,11 +176,11 @@ public static class Format extends OkaeriConfig {
158
176
public String separator = "<gray>,</gray> " ;
159
177
}
160
178
161
- @ Bean
179
+ @ Bean ( proxied = AfkSettings . class )
162
180
@ Comment ("" )
163
181
@ Comment ("# AFK Configuration" )
164
182
@ Comment ("# Settings for Away From Keyboard detection and management" )
165
- public AfkConfig afk = new AfkConfig ();
183
+ AfkConfig afk = new AfkConfig ();
166
184
167
185
@ Comment ("" )
168
186
@ Comment ("# Items Configuration" )
@@ -184,35 +202,37 @@ public static class Items extends OkaeriConfig {
184
202
public boolean dropOnFullInventory = true ;
185
203
}
186
204
205
+ @ Bean (proxied = WarpSettings .class )
187
206
@ Comment ("" )
188
207
@ Comment ("# Warp Configuration" )
189
208
@ Comment ("# Settings for warp points management" )
190
- public WarpConfig warp = new WarpConfig ();
209
+ WarpConfig warp = new WarpConfig ();
191
210
211
+ @ Bean (proxied = ButcherSettings .class )
192
212
@ Comment ("" )
193
213
@ Comment ("# Butcher Configuration" )
194
214
@ Comment ("# Settings for entity removal functionality" )
195
- public ButcherConfig butcher = new ButcherConfig ();
215
+ ButcherConfig butcher = new ButcherConfig ();
196
216
197
- @ Bean
217
+ @ Bean ( proxied = AutoMessageSettings . class )
198
218
@ Comment ("" )
199
219
@ Comment ("# Auto Message Configuration" )
200
220
@ Comment ("# Settings for automatic message broadcasting" )
201
- public AutoMessageConfig autoMessage = new AutoMessageConfig ();
221
+ AutoMessageConfig autoMessage = new AutoMessageConfig ();
202
222
203
- @ Bean
223
+ @ Bean ( proxied = JailSettings . class )
204
224
@ Comment ("" )
205
225
@ Comment ("# Jail Configuration" )
206
226
@ Comment ("# Settings for player jail system" )
207
- public JailConfig jail = new JailConfig ();
227
+ JailConfig jail = new JailConfig ();
208
228
209
- @ Bean
229
+ @ Bean ( proxied = LightningSettings . class )
210
230
@ Comment ("" )
211
231
@ Comment ("# Lightning Configuration" )
212
232
@ Comment ("# Settings for lightning strike effects" )
213
- public LightningConfig lightning = new LightningConfig ();
233
+ LightningConfig lightning = new LightningConfig ();
214
234
215
- @ Bean
235
+ @ Bean ( proxied = ServerLinksSettings . class )
216
236
@ Comment ("" )
217
237
@ Comment ("# Server Links Configuration" )
218
238
@ Comment ("# Settings for server link management" )
0 commit comments