Add ping and whisper ping options

This commit is contained in:
Draycia committed 2020-11-12 04:29:32 -08:00
1 parent 75b6def2d4
commit 7a97d6530a
8 files changed
+129 -4

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ dependencies {
compile 'net.kyori:event-api:3.0.0'
compile 'net.kyori:registry:1.0.0-SNAPSHOT'
api 'cloud.commandframework:cloud-core:1.0.1'
api 'cloud.commandframework:cloud-core:1.1.0'
api 'org.spongepowered:configurate-hocon:4.0.0-SNAPSHOT'
api 'org.slf4j:slf4j-api:1.7.25'
@@ -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;
}
}
}