Skip to content

Commit 29adf62

Browse files
authored
Going back to Scratch
2 parents 04a9581 + 8f846dc commit 29adf62

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<groupId>dev.hypera</groupId>
2626
<artifactId>UltraStaffChat</artifactId>
27-
<version>5.1.3</version>
27+
<version>5.1.4</version>
2828
<packaging>jar</packaging>
2929

3030
<name>UltraStaffChat</name>

src/main/java/dev/hypera/ultrastaffchat/utils/Discord.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)