-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPluginConfig.java
More file actions
165 lines (141 loc) · 5.9 KB
/
PluginConfig.java
File metadata and controls
165 lines (141 loc) · 5.9 KB
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
package com.eternalcode.combat.config.implementation;
import com.eternalcode.combat.border.BorderSettings;
import com.eternalcode.combat.fight.death.DeathSettings;
import com.eternalcode.combat.fight.drop.DropSettings;
import com.eternalcode.combat.fight.effect.FightEffectSettings;
import com.eternalcode.combat.fight.knockback.KnockbackSettings;
import com.eternalcode.combat.fight.pearl.FightPearlSettings;
import eu.okaeri.configs.OkaeriConfig;
import eu.okaeri.configs.annotation.Comment;
import java.time.Duration;
import java.util.List;
public class PluginConfig extends OkaeriConfig {
@Comment(" ")
@Comment("# _____ _ EternalCombat _ _____ _ _ ")
@Comment("# | ___| | o()xxx[{:::::::::> | / __ \\ | | | | ")
@Comment("# | |__ | |_ ___ _ __ _ __ __ _| | / \\/ ___ _ __ ___ | |__ __ _| |_ ")
@Comment("# | __|| __/ _ \\ '__| '_ \\ / _` | | | / _ \\| '_ ` _ \\| '_ \\ / _` | __| ")
@Comment("# | |___| || __/ | | | | | (_| | | \\__/\\ (_) | | | | | | |_) | (_| | |_ ")
@Comment("# \\____/ \\__\\___|_| |_| |_|\\__,_|_|\\____/\\___/|_| |_| |_|_.__/ \\__,_|\\__| ")
@Comment(" ")
@Comment({
" ",
"# Settings for the plugin.",
"# Modify these to customize the plugin's behavior."
})
public Settings settings = new Settings();
@Comment({
" ",
"# Duration formatting settings.",
"# Controls how time values (e.g. cooldowns, timers) are displayed."
})
public DurationFormatSettings durationFormat = new DurationFormatSettings();
@Comment({
" ",
"# Settings related to Ender Pearls.",
"# Configure cooldowns, restrictions, and other behaviors for Ender Pearls during combat."
})
public FightPearlSettings pearl = new FightPearlSettings();
@Comment({
" ",
"# Custom effects applied during combat.",
"# Configure effects like blindness, slowness, or other debuffs that are applied to players in combat."
})
public FightEffectSettings effect = new FightEffectSettings();
@Comment({
" ",
"# This section contains effects displayed on death of the player"
})
public DeathSettings death = new DeathSettings();
@Comment({
" ",
"# Customize how items are dropped when a player dies during combat.",
"# Configure whether items drop, how they drop, and any additional rules for item drops."
})
public DropSettings drop = new DropSettings();
@Comment({
" ",
"# Settings related to knockback during combat.",
"# Configure knockback settings and behaviors for players in combat."
})
public KnockbackSettings knockback = new KnockbackSettings();
@Comment({
" ",
"# Border Settings",
"# Configure the border that appears during combat.",
})
public BorderSettings border = new BorderSettings();
@Comment({
" ",
"# Settings related to block placement during combat.",
"# Configure restrictions and behaviors for block placement while players are in combat."
})
public BlockPlacementSettings blockPlacement = new BlockPlacementSettings();
@Comment({
" ",
"# Settings related to crystal PvP.",
"# Configure behaviors, restrictions, and features specific to crystal PvP combat."
})
public CrystalPvpSettings crystalPvp = new CrystalPvpSettings();
@Comment({
" ",
"# Settings related to commands during combat.",
"# Configure command restrictions and behaviors for players in combat."
})
public CommandSettings commands = new CommandSettings();
@Comment({
" ",
"# Settings related to the plugin's admin commands and features.",
"# Configure admin-specific settings and behaviors for the plugin."
})
public AdminSettings admin = new AdminSettings();
@Comment({
" ",
"# Settings related to regions.",
"# Configure region-specific settings and behaviors for combat."
})
public RegionSettings regions = new RegionSettings();
@Comment({
" ",
"# Settings related to combat and player tagging.",
"# Configure combat rules, and behaviors for player tagging."
})
public CombatSettings combat = new CombatSettings();
@Comment({
" ",
"# Settings related to inventory access during combat.",
"# Configure which inventories players can or cannot access while in combat."
})
public InventorySettings inventory = new InventorySettings();
@Comment({
" ",
"# Settings related to placeholders used in the plugin.",
"# Configure default values returned by placeholders"
})
public PlaceholderSettings placeholders = new PlaceholderSettings();
@Comment({
" ",
"# Customize the messages displayed by the plugin.",
"# Modify these to change the text and formatting of notifications and alerts."
})
public MessagesSettings messagesSettings = new MessagesSettings();
public static class Settings extends OkaeriConfig {
@Comment({
"# Notify players about new plugin updates when they join the server.",
"# Set to 'true' to enable update notifications, or 'false' to disable them."
})
public boolean notifyAboutUpdates = true;
@Comment({
"# The duration (in seconds) that a player remains in combat after being attacked.",
"# After this time expires, the player will no longer be considered in combat."
})
public Duration combatTimerDuration = Duration.ofSeconds(20);
@Comment({
"# List of worlds where combat logging is disabled.",
"# Players in these worlds will not be tagged or affected by combat rules."
})
public List<String> ignoredWorlds = List.of(
"your_world"
);
}
}