Deprecate shouldBungee, ignore this update

This commit is contained in:
Draycia committed 2020-09-03 23:35:22 -07:00
1 parent 5ed153b641
commit 05fa454bac
2 files changed
+20 -2

No files matched your search

@@ -190,7 +190,7 @@ public class CarbonChatChannel extends ChatChannel {
// Route message to bungee / discord (if message originates from this server)
// Use instanceof and not isOnline, if this message originates from another then the instanceof will
// fail, but isOnline may succeed if the player is online on both servers (somehow).
if (user.isOnline() && !fromRemote && shouldBungee()) {
if (user.isOnline() && !fromRemote && (shouldBungee() || isCrossServer())) {
sendMessageToBungee(user.asPlayer(), consoleEvent.getComponent());
}
@@ -382,8 +382,14 @@ public class CarbonChatChannel extends ChatChannel {
}
@Override
@Deprecated
public Boolean shouldBungee() {
return getBoolean("should-bungee") || getBoolean("is-cross-server");
return getBoolean("should-bungee");
}
@Override
public Boolean isCrossServer() {
return getBoolean("is-cross-server");
}
@Override