Skip to content

Commit

Permalink
Going back to Scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
LooFifteen authored Nov 20, 2021
2 parents 04a9581 + 8f846dc commit 29adf62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<groupId>dev.hypera</groupId>
<artifactId>UltraStaffChat</artifactId>
<version>5.1.3</version>
<version>5.1.4</version>
<packaging>jar</packaging>

<name>UltraStaffChat</name>
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/dev/hypera/ultrastaffchat/utils/Discord.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static boolean isEnabled() {
}

public static void broadcastDiscordJoin(ProxiedPlayer p) {
if(!isEnabled() && UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-join-messages"))
if(!isEnabled() || !UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-join-messages"))
return;
ProxyServer.getInstance().getScheduler().runAsync(UltraStaffChat.getInstance(), () -> {
try {
Expand Down Expand Up @@ -102,7 +102,7 @@ public static void broadcastDiscordJoin(ProxiedPlayer p) {
}

public static void broadcastDiscordLeave(ProxiedPlayer p) {
if(!isEnabled() && UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-leave-messages"))
if(!isEnabled() || !UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-leave-messages"))
return;
ProxyServer.getInstance().getScheduler().runAsync(UltraStaffChat.getInstance(), () -> {
try {
Expand Down Expand Up @@ -137,7 +137,7 @@ public static void broadcastDiscordLeave(ProxiedPlayer p) {
}

public static void broadcastDiscordSwitch(ProxiedPlayer p, String from, String to) {
if(!isEnabled() && UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-switch-messages"))
if(!isEnabled() || !UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-switch-messages"))
return;
ProxyServer.getInstance().getScheduler().runAsync(UltraStaffChat.getInstance(), () -> {
try {
Expand Down Expand Up @@ -215,7 +215,7 @@ public static void broadcastDiscordStaffChatMessage(CommandSender s, String mess
}

public static void broadcastDiscordAFKEnable(ProxiedPlayer p) {
if(!isEnabled() && UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-afk-enable-messages"))
if(!isEnabled() || !UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-afk-enable-messages"))
return;
ProxyServer.getInstance().getScheduler().runAsync(UltraStaffChat.getInstance(), () -> {
try {
Expand Down Expand Up @@ -250,7 +250,7 @@ public static void broadcastDiscordAFKEnable(ProxiedPlayer p) {
}

public static void broadcastDiscordAFKDisable(ProxiedPlayer p) {
if(!isEnabled() && UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-afk-disable-messages"))
if(!isEnabled() || !UltraStaffChat.getConfig().getConfiguration().getBoolean("discord-afk-disable-messages"))
return;
ProxyServer.getInstance().getScheduler().runAsync(UltraStaffChat.getInstance(), () -> {
try {
Expand Down

0 comments on commit 29adf62

Please sign in to comment.