mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Improve / fix ignorable setting, fixes #33
This commit is contained in:
1 parent
92505974d7
commit
a8e3267be4
4 files changed
+15
-1
No files matched your search
@@ -45,6 +45,10 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
|
||||
@Override
|
||||
public Boolean canPlayerUse(ChatUser user) {
|
||||
if (user.getChannelSettings(this).isIgnored()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return user.asPlayer().hasPermission("carbonchat.channels." + getName() + ".use");
|
||||
}
|
||||
|
||||
@@ -402,6 +406,11 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
return getString("switch-failure-message");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCannotIgnoreMessage() {
|
||||
return getString("cannot-ignore-message");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getToggleOffMessage() {
|
||||
return getString("toggle-off-message");
|
||||
|
||||
Reference in new issue
Block a user