mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Adjust a few config options
This commit is contained in:
1 parent
6af75c8e86
commit
7e9aae9a9b
3 files changed
+8
-10
No files matched your search
@@ -66,7 +66,7 @@ public abstract class ChatChannel {
|
||||
|
||||
public abstract String getCannotUseMessage();
|
||||
|
||||
public abstract Boolean firstMatchingGroup();
|
||||
public abstract Boolean primaryGroupOnly();
|
||||
|
||||
public abstract boolean testContext(ChatUser sender, ChatUser target);
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
private String getFormat(ChatUser user) {
|
||||
String group = "default";
|
||||
|
||||
if (!firstMatchingGroup()) {
|
||||
if (this.primaryGroupOnly()) {
|
||||
if (user.isOnline()) {
|
||||
group = carbonChat.getPermission().getPrimaryGroup(user.asPlayer());
|
||||
} else {
|
||||
@@ -181,7 +181,7 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
} else {
|
||||
String[] groups;
|
||||
|
||||
// TODO: this can't be done on main thread :(
|
||||
// TODO: this can't be done on main thread (if user is offline) :(
|
||||
if (user.isOnline()) {
|
||||
groups = carbonChat.getPermission().getPlayerGroups(user.asPlayer());
|
||||
} else {
|
||||
@@ -314,8 +314,8 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean firstMatchingGroup() {
|
||||
return getBoolean("first-matching-group");
|
||||
public Boolean primaryGroupOnly() {
|
||||
return getBoolean("primary-group-only");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user