More TODOs: color argument, console in parseMessage return

This commit is contained in:
Draycia committed 2020-10-17 04:49:08 -07:00
1 parent bea9816c45
commit 8e91232345
16 files changed
+350 -42

No files matched your search

@@ -25,10 +25,10 @@ public interface ChatChannel extends Audience {
@Nullable TextColor channelColor(@NonNull CarbonUser user);
@NonNull
Map<PlayerUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull String message, boolean fromRemote);
Map<CarbonUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull String message, boolean fromRemote);
@NonNull
Map<PlayerUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull Collection<@NonNull PlayerUser> recipients,
Map<CarbonUser, Component> parseMessage(@NonNull PlayerUser user, @NonNull Collection<@NonNull PlayerUser> recipients,
@NonNull String message, boolean fromRemote);
boolean canPlayerUse(@NonNull PlayerUser user);
@@ -35,8 +35,8 @@ public final class ChannelOptions {
@Setting
@Comment("The formats for this channel. The key is the name of the group as your permissions plugin reports it.")
private Map<String, String> formats = new HashMap<String, String>() {{
put("default", "<color><<displayname><reset><color>> <message>");
}};
put("default", "<color><<displayname><reset><color>> <message>");
}};
@Setting
@Comment("The name of the format that the plugin will fall back to when it cannot find a matching format for the player's groups.")
@@ -17,9 +17,9 @@ public final class SharedChannelOptions {
@Setting private String color = "#FFFFFF";
@Setting private Map<String, Context> contexts = new HashMap<>();
@Setting private Map<String, String> formats = new HashMap<String, String>() {{
put("default", "<color><<displayname><reset><color>> <message>");
put("staff", "<#00CED1>[Staff] <color><<displayname><reset><color>> <message>");
}};
put("default", "<color><<displayname><reset><color>> <message>");
put("staff", "<#00CED1>[Staff] <color><<displayname><reset><color>> <message>");
}};
@Setting private String defaultFormatName = "default";
@Setting private boolean ignorable = true;
@Setting private boolean crossServer = true;
@@ -13,6 +13,9 @@ public interface UserService<T extends PlayerUser> {
@Nullable
T wrap(UUID uuid);
@Nullable // Maybe NonNull?
<C extends ConsoleUser> C consoleUser();
@Nullable
T wrapIfLoaded(@NonNull UUID uuid);