From 3f6d47be1cc91fc8e18175aad69c96b25cc8065d Mon Sep 17 00:00:00 2001 From: Draycia Date: Fri, 2 Oct 2020 03:22:46 -0700 Subject: [PATCH] Document ChannelPings --- .../draycia/carbon/api/config/ChannelPings.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelPings.java b/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelPings.java index 47823323..6917a840 100644 --- a/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelPings.java +++ b/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ChannelPings.java @@ -9,10 +9,17 @@ import org.spongepowered.configurate.serialize.ConfigSerializable; @ConfigSerializable public final class ChannelPings { - @Setting private boolean enabled = true; - @Setting private @NonNull String prefix = ""; - @Setting private boolean caseSensitive = false; - @Setting private @NonNull Sound sound = Sound.sound( + @Setting(comment = "Determines if this feature is enabled") + private boolean enabled = true; + + @Setting(comment = "The text that pings must begin with. A prefix of '@' means you have to type '@Player' to ping Player") + private @NonNull String prefix = ""; + + @Setting(comment = "If player names are case sensitive, if true you must type Player to ping Player, 'player' will not work") + private boolean caseSensitive = false; + + @Setting(comment = "The sound played to the pinged player") + private @NonNull Sound sound = Sound.sound( Key.key(Key.MINECRAFT_NAMESPACE, "entity.experience_orb.pickup"), Sound.Source.PLAYER, 10.0F,