@@ -68,7 +68,7 @@ public static boolean isEnabled() {
6868 }
6969
7070 public static void broadcastDiscordJoin (ProxiedPlayer p ) {
71- if (!isEnabled () && UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-join-messages" ))
71+ if (!isEnabled () || ! UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-join-messages" ))
7272 return ;
7373 ProxyServer .getInstance ().getScheduler ().runAsync (UltraStaffChat .getInstance (), () -> {
7474 try {
@@ -102,7 +102,7 @@ public static void broadcastDiscordJoin(ProxiedPlayer p) {
102102 }
103103
104104 public static void broadcastDiscordLeave (ProxiedPlayer p ) {
105- if (!isEnabled () && UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-leave-messages" ))
105+ if (!isEnabled () || ! UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-leave-messages" ))
106106 return ;
107107 ProxyServer .getInstance ().getScheduler ().runAsync (UltraStaffChat .getInstance (), () -> {
108108 try {
@@ -137,7 +137,7 @@ public static void broadcastDiscordLeave(ProxiedPlayer p) {
137137 }
138138
139139 public static void broadcastDiscordSwitch (ProxiedPlayer p , String from , String to ) {
140- if (!isEnabled () && UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-switch-messages" ))
140+ if (!isEnabled () || ! UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-switch-messages" ))
141141 return ;
142142 ProxyServer .getInstance ().getScheduler ().runAsync (UltraStaffChat .getInstance (), () -> {
143143 try {
@@ -215,7 +215,7 @@ public static void broadcastDiscordStaffChatMessage(CommandSender s, String mess
215215 }
216216
217217 public static void broadcastDiscordAFKEnable (ProxiedPlayer p ) {
218- if (!isEnabled () && UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-afk-enable-messages" ))
218+ if (!isEnabled () || ! UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-afk-enable-messages" ))
219219 return ;
220220 ProxyServer .getInstance ().getScheduler ().runAsync (UltraStaffChat .getInstance (), () -> {
221221 try {
@@ -250,7 +250,7 @@ public static void broadcastDiscordAFKEnable(ProxiedPlayer p) {
250250 }
251251
252252 public static void broadcastDiscordAFKDisable (ProxiedPlayer p ) {
253- if (!isEnabled () && UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-afk-disable-messages" ))
253+ if (!isEnabled () || ! UltraStaffChat .getConfig ().getConfiguration ().getBoolean ("discord-afk-disable-messages" ))
254254 return ;
255255 ProxyServer .getInstance ().getScheduler ().runAsync (UltraStaffChat .getInstance (), () -> {
256256 try {
0 commit comments