mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Finish up ping options and bug fixes
This commit is contained in:
1 parent
bb2ba72749
commit
41568b1ddf
5 files changed
+70
-21
No files matched your search
@@ -65,6 +65,8 @@ public final class CarbonTranslations {
|
||||
@Setting private String clearNotify = "<yellow>Chat has been cleared by <player>.";
|
||||
@Setting private String clearExempt = "<yellow>You were exempt from the clear due to your permissions!";
|
||||
@Setting private String cannotWhisperSelf = "<yellow>You cannot whisper yourself!";
|
||||
@Setting private String whisperPingChanged = "<green>Whisper ping settings changed!";
|
||||
@Setting private String channelPingChanged = "<green>Channel ping settings changed!";
|
||||
|
||||
public ExceptionMessages exceptionMessages() {
|
||||
return this.exceptionMessages;
|
||||
@@ -214,4 +216,12 @@ public final class CarbonTranslations {
|
||||
return this.cannotWhisperSelf;
|
||||
}
|
||||
|
||||
public String channelPingChanged() {
|
||||
return this.channelPingChanged;
|
||||
}
|
||||
|
||||
public String whisperPingChanged() {
|
||||
return this.whisperPingChanged;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -137,11 +137,11 @@ public interface PlayerUser extends CarbonUser {
|
||||
|
||||
void pingOptions(@NonNull PingOptions pingOptions);
|
||||
|
||||
public static class PingOptions {
|
||||
class PingOptions {
|
||||
public @Nullable Sound whisperSound;
|
||||
public @Nullable Sound pingSound;
|
||||
|
||||
public PingOptions(@Nullable Sound whisperSound, @Nullable Sound pingSound) {
|
||||
public PingOptions(final @Nullable Sound whisperSound, final @Nullable Sound pingSound) {
|
||||
this.whisperSound = whisperSound;
|
||||
this.pingSound = pingSound;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public interface PlayerUser extends CarbonUser {
|
||||
return this.whisperSound;
|
||||
}
|
||||
|
||||
public void whisperSound(@Nullable Sound whisperSound) {
|
||||
public void whisperSound(final @Nullable Sound whisperSound) {
|
||||
this.whisperSound = whisperSound;
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ public interface PlayerUser extends CarbonUser {
|
||||
return this.pingSound;
|
||||
}
|
||||
|
||||
public void pingSound(@Nullable Sound pingSound) {
|
||||
public void pingSound(final @Nullable Sound pingSound) {
|
||||
this.pingSound = pingSound;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user