mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Add ping and whisper ping options
This commit is contained in:
1 parent
75b6def2d4
commit
7a97d6530a
8 files changed
+129
-4
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package net.draycia.carbon.api.users;
|
||||
|
||||
import net.draycia.carbon.api.channels.ChatChannel;
|
||||
import net.kyori.adventure.sound.Sound;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import net.luckperms.api.model.group.Group;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
@@ -132,4 +133,32 @@ public interface PlayerUser extends CarbonUser {
|
||||
|
||||
void clearSelectedChannel();
|
||||
|
||||
@NonNull PingOptions pingOptions();
|
||||
|
||||
public static class PingOptions {
|
||||
public @Nullable Sound whisperSound;
|
||||
public @Nullable Sound pingSound;
|
||||
|
||||
public PingOptions(@Nullable Sound whisperSound, @Nullable Sound pingSound) {
|
||||
this.whisperSound = whisperSound;
|
||||
this.pingSound = pingSound;
|
||||
}
|
||||
|
||||
public @Nullable Sound whisperSound() {
|
||||
return this.whisperSound;
|
||||
}
|
||||
|
||||
public void whisperSound(@Nullable Sound whisperSound) {
|
||||
this.whisperSound = whisperSound;
|
||||
}
|
||||
|
||||
public @Nullable Sound pingSound() {
|
||||
return this.pingSound;
|
||||
}
|
||||
|
||||
public void pingSound(@Nullable Sound pingSound) {
|
||||
this.pingSound = pingSound;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user