mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Add unused options
This commit is contained in:
1 parent
e593e326c1
commit
c4e3a11f10
2 files changed
+25
-5
No files matched your search
@@ -89,6 +89,18 @@ public final class SimpleChat extends JavaPlugin {
|
||||
builder.setWebhook(section.getString("webhook"));
|
||||
}
|
||||
|
||||
if (section.contains("switch-message")) {
|
||||
builder.setSwitchMessage(section.getString("switch-message"));
|
||||
}
|
||||
|
||||
if (section.contains("distance")) {
|
||||
builder.setDistance(section.getDouble("distance"));
|
||||
}
|
||||
|
||||
if (section.contains("name")) {
|
||||
builder.setName(section.getString("name"));
|
||||
}
|
||||
|
||||
if (section.contains("color")) {
|
||||
builder.setColor(TextColor.valueOf(section.getString("color").toUpperCase()));
|
||||
}
|
||||
@@ -117,6 +129,14 @@ public final class SimpleChat extends JavaPlugin {
|
||||
builder.setIsDefault(section.getBoolean("default"));
|
||||
}
|
||||
|
||||
if (section.contains("toggle-on-message")) {
|
||||
builder.setToggleOnMessage(section.getString("toggle-on-message"));
|
||||
}
|
||||
|
||||
if (section.contains("toggle-off-message")) {
|
||||
builder.setToggleOffMessage(section.getString("toggle-off-message"));
|
||||
}
|
||||
|
||||
ChatChannel channel = builder.build(this);
|
||||
|
||||
// TODO: register command for each channel
|
||||
|
||||
Reference in new issue
Block a user