1.14 support, fixes #105
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ public class ChatProcessing {
|
||||||
try {
|
try {
|
||||||
if (!channel.isGlobal()) {
|
if (!channel.isGlobal()) {
|
||||||
String senderGroup = e.getGroupID(sender);
|
String senderGroup = e.getGroupID(sender);
|
||||||
if (senderGroup == null) { // Never send messages to score below 0
|
if (senderGroup == null) { // Never send messages if the group is null
|
||||||
sender.sendMessage("§cYou don't have permission to send this message or something went wrong");
|
sender.sendMessage("§cYou don't have permission to send this message or something went wrong");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ public class ChatProcessing {
|
||||||
group = null; // Don't send the message to them
|
group = null; // Don't send the message to them
|
||||||
else
|
else
|
||||||
group = VanillaUtils.getGroupIfChatOn(p, e);
|
group = VanillaUtils.getGroupIfChatOn(p, e);
|
||||||
if (group != null)
|
if (senderGroup.equals(group))
|
||||||
VanillaUtils.tellRaw(p, jsonstr);
|
VanillaUtils.tellRaw(p, jsonstr);
|
||||||
else if (tc != null) tc.handleSpies(channel, p);
|
else if (tc != null) tc.handleSpies(channel, p);
|
||||||
//Only sends if didn't send normally
|
//Only sends if didn't send normally
|
||||||
|
|
Loading…
Reference in a new issue