Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

Commit 691a2d9

Browse files
committed
wrap
Former-commit-id: 9088cb2
1 parent bf626ed commit 691a2d9

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/main/java/org/maxgamer/quickshop/util/compatibility/CompatibilityModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface CompatibilityModule {
2323
* Calls CompatibilityModule to toggle the detection status for playerb between on and off
2424
*
2525
* @param player The player
26-
* @param status On or Off
26+
* @param checking On or Off
2727
*/
28-
void toggle(@NotNull Player player, boolean status);
28+
void toggle(@NotNull Player player, boolean checking);
2929
}

src/main/java/org/maxgamer/quickshop/util/compatibility/NCPCompatibilityModule.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ public class NCPCompatibilityModule implements CompatibilityModule {
3636
* Calls CompatibilityModule to toggle the detection status for playerb between on and off
3737
*
3838
* @param player The player
39-
* @param status On or Off
39+
* @param checking On or Off
4040
*/
4141
@Override
42-
public void toggle(@NotNull Player player, boolean status) {
43-
if (status) {
42+
public void toggle(@NotNull Player player, boolean checking) {
43+
if (checking) {
4444
Util.debugLog(
4545
"Calling NoCheatPlus ignore "
4646
+ player.getName()
4747
+ " cheats detection until we finished permission checks.");
4848

49-
NCPExemptionManager.exemptPermanently(player);
50-
NCPExemptionManager.exemptPermanently(player);
49+
NCPExemptionManager.unexempt(player);
50+
NCPExemptionManager.unexempt(player);
5151
} else {
5252
Util.debugLog(
5353
"Calling NoCheatPlus continue follow " + player.getName() + " cheats detection.");
54-
NCPExemptionManager.unexempt(player);
55-
NCPExemptionManager.unexempt(player);
54+
NCPExemptionManager.exemptPermanently(player);
55+
NCPExemptionManager.exemptPermanently(player);
5656
}
5757
}
5858
}

0 commit comments

Comments
 (0)