This repository was archived by the owner on Dec 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/org/maxgamer/quickshop/util/compatibility Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments