blob: df450847ba8df51003561265e0ad6628e39b90dd (
plain)
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
|
package at.hannibal2.skyhanni.config.features.misc;
import com.google.gson.annotations.Expose;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean;
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDropdown;
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption;
import org.jetbrains.annotations.NotNull;
public class PartyCommandsConfig {
@Expose
@ConfigEditorDropdown
@ConfigOption(name = "Party Command Trust Level", desc = "Choose who can run party chat commands.")
public @NotNull TrustedUser defaultRequiredTrustLevel = TrustedUser.FRIENDS;
@Expose
@ConfigEditorBoolean
@ConfigOption(name = "Party Transfer", desc = "Automatically transfer the party to people who type §b!ptme")
public boolean transferCommand = false;
@Expose
@ConfigEditorBoolean
@ConfigOption(name = "Party Warp", desc = "Automatically warp the party if someone types §b!warp")
public boolean warpCommand = false;
@Expose
@ConfigEditorBoolean
@ConfigOption(name = "Party All Invite", desc = "Automatically turn on allinvite if someone types §b!allinv")
public boolean allInviteCommand = false;
public enum TrustedUser {
BEST_FRIENDS("Best Friends"),
FRIENDS("Friends"),
ANYONE("Everyone"),
NO_ONE("No One"),
;
final String label;
TrustedUser(String label) {
this.label = label;
}
@Override
public String toString() {
return label;
}
}
@Expose
@ConfigEditorBoolean
@ConfigOption(name = "Show reminder", desc = "Show a reminder when an unauthorized player tries to run a command.")
public boolean showIgnoredReminder = true;
}
|