mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Add option to enable enhanced whisper functionality, disabled by default
This commit is contained in:
1 parent
564a3baede
commit
0a52817f1a
2 files changed
+32
-10
No files matched your search
@@ -12,6 +12,11 @@ public final class WhisperOptions {
|
||||
@Comment("Plays a sound when receiving private messages with /whisper /msg")
|
||||
private @NonNull WhisperPings pings = new WhisperPings();
|
||||
|
||||
@Setting
|
||||
@Comment("If enabled, players will be able to whisper other players as if they had their own private channel, " +
|
||||
"without the need to type /r or /msg each message. /msg [player]")
|
||||
private boolean useEnhancedWhispers = false;
|
||||
|
||||
@Setting
|
||||
@Comment("")
|
||||
private @NonNull String switchMessage = "<gray>You are now in <color><channel> <gray>chat!";
|
||||
@@ -84,6 +89,10 @@ public final class WhisperOptions {
|
||||
return this.pings;
|
||||
}
|
||||
|
||||
public boolean useEnhancedWhispers() {
|
||||
return this.useEnhancedWhispers;
|
||||
}
|
||||
|
||||
public @NonNull String consoleFormat() {
|
||||
return this.consoleFormat;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user