Hide join/leave messages of muted players

implements #154
This commit is contained in:
Draycia committed 2021-09-22 18:36:55 -07:00
1 parent 44c58eeec4
commit be5e10037b
3 files changed
+102 -19

No files matched your search

@@ -17,6 +17,8 @@ public class PrimaryConfig {
private final Key defaultChannel = Key.key("carbon", "basic");
@Comment("The service that will be used to store and load player information.")
private final StorageType storageType = StorageType.JSON;
@Comment("Should we hide join/quit and death messages of muted players?")
private final boolean hideMutedJoinLeaveQuit = false;
public Locale defaultLocale() {
return this.defaultLocale;
@@ -30,6 +32,10 @@ public class PrimaryConfig {
return this.storageType;
}
public boolean hideMutedJoinLeaveQuit() {
return this.hideMutedJoinLeaveQuit;
}
public enum StorageType {
JSON,
MYSQL,