Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fixed VerifyCheck and ServerListCheck.
Browse files Browse the repository at this point in the history
Former-commit-id: de8563f
  • Loading branch information
PolskiStevek committed Mar 1, 2020
1 parent 716ee66 commit 453756d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion files/version.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.3
3.9.4
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.ishift</groupId>
<artifactId>EpicGuard</artifactId>
<version>3.9.3</version>
<version>3.9.4</version>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class ServerListCheck {
private static List<String> pingList = new ArrayList<>();

public static boolean perform(String address) {
if (Config.serverListCheck || AttackSpeed.isUnderAttack()) {
return pingList.contains(address);
if (Config.serverListCheck && AttackSpeed.isUnderAttack()) {
return !pingList.contains(address);
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class VerifyCheck {
private static List<String> rejoined = new ArrayList<>();

public static boolean perform(String nickname) {
if (Config.rejoinCheck || AttackSpeed.isUnderAttack()) {
if (Config.rejoinCheck && AttackSpeed.isUnderAttack()) {
if (!rejoined.contains(nickname)) {
rejoined.add(nickname);
return true;
Expand Down

0 comments on commit 453756d

Please sign in to comment.