mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Configs and per-user localisations (#149)
Co-authored-by: jmp <[email protected]> Co-authored-by: broccolai <[email protected]>
This commit is contained in:
35 files changed
+557
-223
No files matched your search
@@ -16,15 +16,7 @@ import static net.kyori.adventure.text.Component.empty;
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@DefaultQualifier(NonNull.class)
|
||||
public interface ChatChannel extends Keyed {
|
||||
|
||||
/**
|
||||
* This channel's renderer.
|
||||
*
|
||||
* @return the renderer
|
||||
* @since 2.0.0
|
||||
*/
|
||||
ChatComponentRenderer renderer();
|
||||
public interface ChatChannel extends Keyed, ChatComponentRenderer {
|
||||
|
||||
/**
|
||||
* Checks if the player may send messages in this channel.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.draycia.carbon.api.users;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.UUID;
|
||||
import net.draycia.carbon.api.channels.ChatChannel;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
@@ -59,12 +60,20 @@ public interface CarbonPlayer extends Audience, Identified {
|
||||
Component createItemHoverComponent();
|
||||
|
||||
/**
|
||||
* The player's selected channel. If none has been set, returns the server default.
|
||||
* The player's locale.
|
||||
*
|
||||
* @return the player's locale, or null if offline
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@Nullable Locale locale();
|
||||
|
||||
/**
|
||||
* The player's selected channel, or null if one isn't set.
|
||||
*
|
||||
* @return the player's selected channel
|
||||
* @since 2.0.0
|
||||
*/
|
||||
ChatChannel selectedChannel();
|
||||
@Nullable ChatChannel selectedChannel();
|
||||
|
||||
/**
|
||||
* Sets the player's selected channel.
|
||||
|
||||
Reference in new issue
Block a user