mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
More TODOs
This commit is contained in:
1 parent
1685fa6ba9
commit
bea9816c45
8 files changed
+51
-25
No files matched your search
@@ -29,13 +29,15 @@ public final class ChannelOptions {
|
||||
private String color;
|
||||
|
||||
@Setting
|
||||
@Comment("The contexts for this channel, ")
|
||||
private Map<String, Context> contexts = new HashMap<>(); // TODO: set defaults
|
||||
@Comment("The contexts for this channel, which can modify the behaviour of channels and how/when players can use them.")
|
||||
private Map<String, Context> contexts = new HashMap<>();
|
||||
|
||||
@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<>(); // TODO: set defaults
|
||||
|
||||
private Map<String, String> formats = new HashMap<String, String>() {{
|
||||
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.")
|
||||
private String defaultFormatName;
|
||||
|
||||
+5
-2
@@ -15,8 +15,11 @@ import java.util.Map;
|
||||
public final class SharedChannelOptions {
|
||||
|
||||
@Setting private String color = "#FFFFFF";
|
||||
@Setting private Map<String, Context> contexts = new HashMap<>(); // TODO: set defaults
|
||||
@Setting private Map<String, String> formats = new HashMap<>(); // TODO: set defaults
|
||||
@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>");
|
||||
}};
|
||||
@Setting private String defaultFormatName = "default";
|
||||
@Setting private boolean ignorable = true;
|
||||
@Setting private boolean crossServer = true;
|
||||
|
||||
Reference in new issue
Block a user