mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-11 18:27:47 +01:00
Cleanup "ASCII art" from the sourcecode
Wiped every ASCII related thing that I could find in the NoCheatPlus source.
This commit is contained in:
parent
1284fffdf1
commit
add2179dc9
@ -2,15 +2,6 @@ package fr.neatmonster.nocheatplus.actions;
|
||||
|
||||
import fr.neatmonster.nocheatplus.config.ConfigFileWithActions;
|
||||
|
||||
/*
|
||||
* MMP"""""""MM dP oo
|
||||
* M' .mmmm MM 88
|
||||
* M `M .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM MM 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMMM MM 88. ... 88 88 88. .88 88 88
|
||||
* M MMMMM MM `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* An action gets executed as the result of a failed check. If it 'really' gets executed depends on how many executions
|
||||
* have occurred within the last 60 seconds and how much time was between this and the previous execution.
|
||||
|
@ -7,16 +7,6 @@ import fr.neatmonster.nocheatplus.actions.types.LogAction;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||
|
||||
/*
|
||||
* MMP"""""""MM dP oo MM""""""""`M dP
|
||||
* M' .mmmm MM 88 MM mmmmmmmM 88
|
||||
* M `M .d8888b. d8888P dP .d8888b. 88d888b. M' MMMM .d8888b. .d8888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* M MMMMM MM 88' `"" 88 88 88' `88 88' `88 MM MMMMMMMM 88' `88 88' `"" 88 88' `88 88' `88 88 88
|
||||
* M MMMMM MM 88. ... 88 88 88. .88 88 88 MM MMMMMMMM 88. .88 88. ... 88 88. .88 88 88. .88
|
||||
* M MMMMM MM `88888P' dP dP `88888P' dP dP MM MMMMMMMM `88888P8 `88888P' dP `88888P' dP `8888P88
|
||||
* MMMMMMMMMMMM MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Helps with creating Actions out of text string definitions.
|
||||
*/
|
||||
|
@ -2,17 +2,6 @@ package fr.neatmonster.nocheatplus.actions;
|
||||
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* MMP"""""""MM dP oo M""MMMMMMMM oo dP
|
||||
* M' .mmmm MM 88 M MMMMMMMM 88
|
||||
* M `M .d8888b. d8888P dP .d8888b. 88d888b. M MMMMMMMM dP .d8888b. d8888P
|
||||
* M MMMMM MM 88' `"" 88 88 88' `88 88' `88 M MMMMMMMM 88 Y8ooooo. 88
|
||||
* M MMMMM MM 88. ... 88 88 88. .88 88 88 M MMMMMMMM 88 88 88
|
||||
* M MMMMM MM `88888P' dP dP `88888P' dP dP M M dP `88888P' dP
|
||||
* MMMMMMMMMMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* A list of actions, that associates actions to thresholds. It allows to retrieve all actions that match a certain
|
||||
* threshold.
|
||||
|
@ -1,22 +1,5 @@
|
||||
package fr.neatmonster.nocheatplus.actions;
|
||||
|
||||
/*
|
||||
* MM"""""""`YM dP
|
||||
* MM mmmmm M 88
|
||||
* M' .M .d8888b. 88d888b. .d8888b. 88d8b.d8b. .d8888b. d8888P .d8888b. 88d888b.
|
||||
* MM MMMMMMMM 88' `88 88' `88 88' `88 88'`88'`88 88ooood8 88 88ooood8 88' `88
|
||||
* MM MMMMMMMM 88. .88 88 88. .88 88 88 88 88. ... 88 88. ... 88
|
||||
* MM MMMMMMMM `88888P8 dP `88888P8 dP dP dP `88888P' dP `88888P' dP
|
||||
* MMMMMMMMMMMM
|
||||
*
|
||||
* M"""""""`YM
|
||||
* M mmmm. M
|
||||
* M MMMMM M .d8888b. 88d8b.d8b. .d8888b.
|
||||
* M MMMMM M 88' `88 88'`88'`88 88ooood8
|
||||
* M MMMMM M 88. .88 88 88 88 88. ...
|
||||
* M MMMMM M `88888P8 dP dP dP `88888P'
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Some wildcards that are used in commands and log messages.
|
||||
*/
|
||||
|
@ -7,23 +7,6 @@ import fr.neatmonster.nocheatplus.actions.Action;
|
||||
import fr.neatmonster.nocheatplus.actions.ParameterHolder;
|
||||
import fr.neatmonster.nocheatplus.actions.ParameterName;
|
||||
|
||||
/*
|
||||
* MMP"""""""MM dP oo M""MMM""MMM""M oo dP dP
|
||||
* M' .mmmm MM 88 M MMM MMM M 88 88
|
||||
* M `M .d8888b. d8888P dP .d8888b. 88d888b. M MMP MMP M dP d8888P 88d888b.
|
||||
* M MMMMM MM 88' `"" 88 88 88' `88 88' `88 M MM' MM' .M 88 88 88' `88
|
||||
* M MMMMM MM 88. ... 88 88 88. .88 88 88 M `' . '' .MM 88 88 88 88
|
||||
* M MMMMM MM `88888P' dP dP `88888P' dP dP M .d .dMMM dP dP dP dP
|
||||
* MMMMMMMMMMMM MMMMMMMMMMMMMM
|
||||
*
|
||||
* MM"""""""`YM dP
|
||||
* MM mmmmm M 88
|
||||
* M' .M .d8888b. 88d888b. .d8888b. 88d8b.d8b. .d8888b. d8888P .d8888b. 88d888b. .d8888b.
|
||||
* MM MMMMMMMM 88' `88 88' `88 88' `88 88'`88'`88 88ooood8 88 88ooood8 88' `88 Y8ooooo.
|
||||
* MM MMMMMMMM 88. .88 88 88. .88 88 88 88 88. ... 88 88. ... 88 88
|
||||
* MM MMMMMMMM `88888P8 dP `88888P8 dP dP dP `88888P' dP `88888P' dP `88888P'
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Action with parameters is used for the messages (chat, console, log) or the commands.
|
||||
*/
|
||||
|
@ -4,15 +4,6 @@ import fr.neatmonster.nocheatplus.actions.AbstractActionList;
|
||||
import fr.neatmonster.nocheatplus.actions.Action;
|
||||
import fr.neatmonster.nocheatplus.actions.ActionData;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP MMP"""""""MM dP oo
|
||||
* M' .mmm. `M 88 M' .mmmm MM 88
|
||||
* M MMMMMooM .d8888b. 88d888b. .d8888b. .d8888b. 88 M `M .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88' `"" 88ooood8 88 M MMMMM MM 88' `"" 88 88 88' `88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88. ... 88. ... 88 M MMMMM MM 88. ... 88 88 88. .88 88 88
|
||||
* MM. .dM `88888P8 dP dP `88888P' `88888P' dP M MMMMM MM `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Do something check-specific. Usually that is to cancel the event, undo something the player did, or do something the
|
||||
* server should've done.
|
||||
|
@ -7,23 +7,6 @@ import fr.neatmonster.nocheatplus.actions.AbstractActionList;
|
||||
import fr.neatmonster.nocheatplus.actions.ParameterHolder;
|
||||
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP
|
||||
* M' .mmm. `M 88
|
||||
* M MMMMMooM .d8888b. 88d8b.d8b. 88d8b.d8b. .d8888b. 88d888b. .d888b88
|
||||
* M MMMMMMMM 88' `88 88'`88'`88 88'`88'`88 88' `88 88' `88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88 88 88. .88 88 88 88. .88
|
||||
* MM. .dM `88888P' dP dP dP dP dP dP `88888P8 dP dP `88888P8
|
||||
* MMMMMMMMMMM
|
||||
*
|
||||
* MMP"""""""MM dP oo
|
||||
* M' .mmmm MM 88
|
||||
* M `M .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM MM 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMMM MM 88. ... 88 88 88. .88 88 88
|
||||
* M MMMMM MM `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Execute a command by imitating an administrator typing the command directly into the console.
|
||||
*/
|
||||
|
@ -5,16 +5,6 @@ import fr.neatmonster.nocheatplus.actions.Action;
|
||||
import fr.neatmonster.nocheatplus.actions.ActionData;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigFileWithActions;
|
||||
|
||||
/*
|
||||
* M""""""'YMM MMP"""""""MM dP oo
|
||||
* M mmmm. `M M' .mmmm MM 88
|
||||
* M MMMMM M dP dP 88d8b.d8b. 88d8b.d8b. dP dP M `M .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM M 88 88 88'`88'`88 88'`88'`88 88 88 M MMMMM MM 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMM' .M 88. .88 88 88 88 88 88 88 88. .88 M MMMMM MM 88. ... 88 88 88. .88 88 88
|
||||
* M .MM `88888P' dP dP dP dP dP dP `8888P88 M MMMMM MM `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM .88 MMMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* If an action can't be parsed correctly, at least keep it stored in this form to not lose it when loading/storing the
|
||||
* configuration file.
|
||||
|
@ -12,16 +12,6 @@ import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||
import fr.neatmonster.nocheatplus.logging.StaticLogFile;
|
||||
import fr.neatmonster.nocheatplus.utilities.ColorUtil;
|
||||
|
||||
/*
|
||||
* M""MMMMMMMM MMP"""""""MM dP oo
|
||||
* M MMMMMMMM M' .mmmm MM 88
|
||||
* M MMMMMMMM .d8888b. .d8888b. M `M .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 M MMMMM MM 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMMMMMM 88. .88 88. .88 M MMMMM MM 88. ... 88 88 88. .88 88 88
|
||||
* M M `88888P' `8888P88 M MMMMM MM `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM .88 MMMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Print a log message to various locations.
|
||||
*/
|
||||
|
@ -17,15 +17,6 @@ import fr.neatmonster.nocheatplus.players.DataManager;
|
||||
import fr.neatmonster.nocheatplus.players.ExecutionHistory;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP
|
||||
* M' .mmm. `M 88 88
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. 88 .dP
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `"" 88888"
|
||||
* M. `MMM' .M 88 88 88. ... 88. ... 88 `8b.
|
||||
* MM. .dM dP dP `88888P' `88888P' dP `YP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The parent class of all checks. Don't let this implement Listener without knowing that this might be registered as component with NCP before the check-listeners.
|
||||
*/
|
||||
|
@ -23,16 +23,6 @@ import fr.neatmonster.nocheatplus.checks.moving.MovingData;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.players.DataManager;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP M""""""""M
|
||||
* M' .mmm. `M 88 88 Mmmm mmmM
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. 88 .dP MMMM MMMM dP dP 88d888b. .d8888b.
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `"" 88888" MMMM MMMM 88 88 88' `88 88ooood8
|
||||
* M. `MMM' .M 88 88 88. ... 88. ... 88 `8b. MMMM MMMM 88. .88 88. .88 88. ...
|
||||
* MM. .dM dP dP `88888P' `88888P' dP `YP MMMM MMMM `8888P88 88Y888P' `88888P'
|
||||
* MMMMMMMMMMM MMMMMMMMMM .88 88
|
||||
* d8888P dP
|
||||
*/
|
||||
/**
|
||||
* Type of checks (containing configuration and dataFactory classes, name and permission).
|
||||
*/
|
||||
|
@ -13,15 +13,6 @@ import fr.neatmonster.nocheatplus.actions.types.CancelAction;
|
||||
import fr.neatmonster.nocheatplus.checks.access.IViolationInfo;
|
||||
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||
|
||||
/*
|
||||
* M""MMMMM""M oo dP dP oo M""""""'YMM dP
|
||||
* M MMMMM M 88 88 M mmmm. `M 88
|
||||
* M MMMMP M dP .d8888b. 88 .d8888b. d8888P dP .d8888b. 88d888b. M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMM' .M 88 88' `88 88 88' `88 88 88 88' `88 88' `88 M MMMMM M 88' `88 88 88' `88
|
||||
* M MMP' .MM 88 88. .88 88 88. .88 88 88 88. .88 88 88 M MMMM' .M 88. .88 88 88. .88
|
||||
* M .dMMM dP `88888P' dP `88888P8 dP dP `88888P' dP dP M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Violation specific data, for executing actions.<br>
|
||||
* This is meant to capture a violation incident in a potentially thread safe way.
|
||||
|
@ -12,24 +12,6 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.hooks.APIUtils;
|
||||
|
||||
/*
|
||||
* M""MMMMM""M oo dP dP oo
|
||||
* M MMMMM M 88 88
|
||||
* M MMMMP M dP .d8888b. 88 .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMM' .M 88 88' `88 88 88' `88 88 88 88' `88 88' `88
|
||||
* M MMP' .MM 88 88. .88 88 88. .88 88 88 88. .88 88 88
|
||||
* M .dMMM dP `88888P' dP `88888P8 dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM
|
||||
*
|
||||
* M""MMMMM""MM oo dP
|
||||
* M MMMMM MM 88
|
||||
* M `M dP .d8888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* M MMMMM MM 88 Y8ooooo. 88 88' `88 88' `88 88 88
|
||||
* M MMMMM MM 88 88 88 88. .88 88 88. .88
|
||||
* M MMMMM MM dP `88888P' dP `88888P' dP `8888P88
|
||||
* MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* The class containg the violation history of a player.
|
||||
*/
|
||||
|
@ -3,7 +3,6 @@ package fr.neatmonster.nocheatplus.checks.access;
|
||||
import fr.neatmonster.nocheatplus.config.ConfPaths;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
|
||||
|
||||
/**
|
||||
* Minimal implementation, doing nothing.
|
||||
* @author mc_dev
|
||||
@ -43,7 +42,5 @@ public abstract class ACheckConfig implements ICheckConfig {
|
||||
public void setDebug(final boolean debug) {
|
||||
this.debug = debug;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package fr.neatmonster.nocheatplus.checks.access;
|
||||
|
||||
|
||||
/**
|
||||
* Abstract implementation to do nothing.
|
||||
* @author mc_dev
|
||||
|
@ -12,7 +12,6 @@ import java.util.Map;
|
||||
public abstract class AsyncCheckData extends ACheckData {
|
||||
|
||||
// TODO: consider using a PermissionEntry class with a timestamp to schedule renewing it.
|
||||
|
||||
// TODO: consider using a normal HashMap and ensure by contract that the permissions get filled at login, so updates are thread safe.
|
||||
|
||||
/** The permissions that are actually cached. */
|
||||
|
@ -2,25 +2,6 @@ package fr.neatmonster.nocheatplus.checks.access;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 88 M' .mmm. `M 88 "
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. 88 .dP M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `"" 88888" M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88 88 88. ... 88. ... 88 `8b. M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM dP dP `88888P' `88888P' dP `YP MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
* MM""""""""`M dP
|
||||
* MM mmmmmmmM 88
|
||||
* M' MMMM .d8888b. .d8888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* MM MMMMMMMM 88' `88 88' `"" 88 88' `88 88' `88 88 88
|
||||
* MM MMMMMMMM 88. .88 88. ... 88 88. .88 88 88. .88
|
||||
* MM MMMMMMMM `88888P8 `88888P' dP `88888P' dP `8888P88
|
||||
* MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* A factory for creating and accessing configurations.
|
||||
*
|
||||
|
@ -4,25 +4,6 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.IRemoveData;
|
||||
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP M""""""'YMM dP
|
||||
* M' .mmm. `M 88 88 M mmmm. `M 88
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. 88 .dP M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `"" 88888" M MMMMM M 88' `88 88 88' `88
|
||||
* M. `MMM' .M 88 88 88. ... 88. ... 88 `8b. M MMMM' .M 88. .88 88 88. .88
|
||||
* MM. .dM dP dP `88888P' `88888P' dP `YP M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM MMMMMMMMMMM
|
||||
*
|
||||
* * MM""""""""`M dP
|
||||
* MM mmmmmmmM 88
|
||||
* M' MMMM .d8888b. .d8888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* MM MMMMMMMM 88' `88 88' `"" 88 88' `88 88' `88 88 88
|
||||
* MM MMMMMMMM 88. .88 88. ... 88 88. .88 88 88. .88
|
||||
* MM MMMMMMMM `88888P8 `88888P' dP `88888P' dP `8888P88
|
||||
* MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* A factory for creating and accessing data.
|
||||
*
|
||||
|
@ -2,16 +2,6 @@ package fr.neatmonster.nocheatplus.checks.access;
|
||||
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 88 M' .mmm. `M 88 "
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. 88 .dP M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `"" 88888" M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88 88 88. ... 88. ... 88 `8b. M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM dP dP `88888P' `88888P' dP `YP MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* This interface must be implemented by all configuration classes.
|
||||
*
|
||||
|
@ -2,15 +2,6 @@ package fr.neatmonster.nocheatplus.checks.access;
|
||||
|
||||
import fr.neatmonster.nocheatplus.components.IData;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP M""""""'YMM dP
|
||||
* M' .mmm. `M 88 88 M mmmm. `M 88
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. 88 .dP M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `"" 88888" M MMMMM M 88' `88 88 88' `88
|
||||
* M. `MMM' .M 88 88 88. ... 88. ... 88 `8b. M MMMM' .M 88. .88 88 88. .88
|
||||
* MM. .dM dP dP `88888P' `88888P' dP `YP M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* This is for future purposes. Might remove...<br>
|
||||
* Some checks in chat synchronize over data, so using this from exectueActions can deadlock.<br>
|
||||
|
@ -15,24 +15,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP M#"""""""'M dP
|
||||
* ## mmmm. `M 88 88 ## mmmm. `M 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP #' .M 88d888b. .d8888b. .d8888b. 88 .dP
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" M# MMMb.'YM 88' `88 88ooood8 88' `88 88888"
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. M# MMMM' M 88 88. ... 88. .88 88 `8b.
|
||||
* M# .;M dP `88888P' `88888P' dP `YP M# .;M dP `88888P' `88888P8 dP `YP
|
||||
* M#########M M#########M
|
||||
*
|
||||
* MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 "
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the block break checks. Every world gets one of these assigned to it, or if a world
|
||||
* doesn't get it's own, it will use the "global" version.
|
||||
|
@ -14,23 +14,6 @@ import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
import fr.neatmonster.nocheatplus.utilities.Stats;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP M#"""""""'M dP
|
||||
* ## mmmm. `M 88 88 ## mmmm. `M 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP #' .M 88d888b. .d8888b. .d8888b. 88 .dP
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" M# MMMb.'YM 88' `88 88ooood8 88' `88 88888"
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. M# MMMM' M 88 88. ... 88. .88 88 `8b.
|
||||
* M# .;M dP `88888P' `88888P' dP `YP M# .;M dP `88888P' `88888P8 dP `YP
|
||||
* M#########M M#########M
|
||||
*
|
||||
* M""""""'YMM dP
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMMM M 88' `88 88 88' `88
|
||||
* M MMMM' .M 88. .88 88 88. .88
|
||||
* M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Player specific data for the block break checks.
|
||||
*/
|
||||
|
@ -23,23 +23,6 @@ import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.utilities.BlockProperties;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP M#"""""""'M dP
|
||||
* ## mmmm. `M 88 88 ## mmmm. `M 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP #' .M 88d888b. .d8888b. .d8888b. 88 .dP
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" M# MMMb.'YM 88' `88 88ooood8 88' `88 88888"
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. M# MMMM' M 88 88. ... 88. .88 88 `8b.
|
||||
* M# .;M dP `88888P' `88888P' dP `YP M# .;M dP `88888P' `88888P8 dP `YP
|
||||
* M#########M M#########M
|
||||
*
|
||||
* M""MMMMMMMM oo dP
|
||||
* M MMMMMMMM 88
|
||||
* M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the block break checks.
|
||||
*
|
||||
@ -80,13 +63,6 @@ public class BlockBreakListener extends CheckListener {
|
||||
@EventHandler(
|
||||
ignoreCancelled = false, priority = EventPriority.LOWEST)
|
||||
public void onBlockBreak(final BlockBreakEvent event) {
|
||||
/*
|
||||
* ____ _ _ ____ _
|
||||
* | __ )| | ___ ___| | __ | __ ) _ __ ___ __ _| | __
|
||||
* | _ \| |/ _ \ / __| |/ / | _ \| '__/ _ \/ _` | |/ /
|
||||
* | |_) | | (_) | (__| < | |_) | | | __/ (_| | <
|
||||
* |____/|_|\___/ \___|_|\_\ |____/|_| \___|\__,_|_|\_\
|
||||
*/
|
||||
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
@ -179,14 +155,6 @@ public class BlockBreakListener extends CheckListener {
|
||||
@EventHandler(
|
||||
priority = EventPriority.MONITOR)
|
||||
public void onPlayerAnimation(final PlayerAnimationEvent event) {
|
||||
/*
|
||||
* ____ _ _ _ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ / \ _ __ (_)_ __ ___ __ _| |_(_) ___ _ __
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| / _ \ | '_ \| | '_ ` _ \ / _` | __| |/ _ \| '_ \
|
||||
* | __/| | (_| | |_| | __/ | / ___ \| | | | | | | | | | (_| | |_| | (_) | | | |
|
||||
* |_| |_|\__,_|\__, |\___|_| /_/ \_\_| |_|_|_| |_| |_|\__,_|\__|_|\___/|_| |_|
|
||||
* |___/
|
||||
*/
|
||||
// Just set a flag to true when the arm was swung.
|
||||
// System.out.println("Animation");
|
||||
BlockBreakData.getData(event.getPlayer()).noSwingArmSwung = true;
|
||||
@ -202,15 +170,6 @@ public class BlockBreakListener extends CheckListener {
|
||||
@EventHandler(
|
||||
ignoreCancelled = false, priority = EventPriority.LOWEST)
|
||||
public void onPlayerInteract(final PlayerInteractEvent event) {
|
||||
/*
|
||||
* ____ _ ___ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ |_ _|_ __ | |_ ___ _ __ __ _ ___| |_
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | || '_ \| __/ _ \ '__/ _` |/ __| __|
|
||||
* | __/| | (_| | |_| | __/ | | || | | | || __/ | | (_| | (__| |_
|
||||
* |_| |_|\__,_|\__, |\___|_| |___|_| |_|\__\___|_| \__,_|\___|\__|
|
||||
* |___/
|
||||
*/
|
||||
|
||||
// System.out.println("Interact("+event.isCancelled()+"): " + event.getClickedBlock());
|
||||
// The following is to set the "first damage time" for a block.
|
||||
|
||||
|
@ -9,15 +9,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* M""""""'YMM oo dP oo
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M dP 88d888b. .d8888b. .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM M 88 88' `88 88ooood8 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMM' .M 88 88 88. ... 88. ... 88 88 88. .88 88 88
|
||||
* M .MM dP dP `88888P' `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Direction check will find out if a player tried to interact with something that's not in their field of view.
|
||||
*/
|
||||
|
@ -15,15 +15,6 @@ import fr.neatmonster.nocheatplus.utilities.BlockProperties;
|
||||
import fr.neatmonster.nocheatplus.utilities.PotionUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM""""""""`M dP M#"""""""'M dP
|
||||
* MM mmmmmmmM 88 ## mmmm. `M 88
|
||||
* M' MMMM .d8888b. .d8888b. d8888P #' .M 88d888b. .d8888b. .d8888b. 88 .dP
|
||||
* MM MMMMMMMM 88' `88 Y8ooooo. 88 M# MMMb.'YM 88' `88 88ooood8 88' `88 88888"
|
||||
* MM MMMMMMMM 88. .88 88 88 M# MMMM' M 88 88. ... 88. .88 88 `8b.
|
||||
* MM MMMMMMMM `88888P8 `88888P' dP M# .;M dP `88888P' `88888P8 dP `YP
|
||||
* MMMMMMMMMMMM M#########M
|
||||
*/
|
||||
/**
|
||||
* A check used to verify if the player isn't breaking blocks faster than possible.
|
||||
*/
|
||||
|
@ -5,16 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MP""""""`MM oo
|
||||
* M mmmm. M M mmmmm..M
|
||||
* M MMMMM M .d8888b. M. `YM dP dP dP dP 88d888b. .d8888b.
|
||||
* M MMMMM M 88' `88 MMMMMMM. M 88 88 88 88 88' `88 88' `88
|
||||
* M MMMMM M 88. .88 M. .MMM' M 88.88b.88' 88 88 88 88. .88
|
||||
* M MMMMM M `88888P' Mb. .dM 8888P Y8P dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* We require that the player moves their arm between block breaks, this is what gets checked here.
|
||||
*/
|
||||
|
@ -12,15 +12,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* MM"""""""`MM dP
|
||||
* MM mmmm, M 88
|
||||
* M' .M .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* MM MMMb. "M 88ooood8 88' `88 88' `"" 88' `88
|
||||
* MM MMMMM M 88. ... 88. .88 88. ... 88 88
|
||||
* MM MMMMM M `88888P' `88888P8 `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Reach check will find out if a player interacts with something that's too far away.
|
||||
*/
|
||||
|
@ -15,24 +15,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP M""M dP dP
|
||||
* ## mmmm. `M 88 88 M M 88 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP M M 88d888b. d8888P .d8888b. 88d888b. .d8888b. .d8888b. d8888P
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" M M 88' `88 88 88ooood8 88' `88 88' `88 88' `"" 88
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. M M 88 88 88 88. ... 88 88. .88 88. ... 88
|
||||
* M# .;M dP `88888P' `88888P' dP `YP M M dP dP dP `88888P' dP `88888P8 `88888P' dP
|
||||
* M#########M MMMM
|
||||
*
|
||||
* MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 "
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the block interact checks. Every world gets one of these assigned to it, or if a world
|
||||
* doesn't get it's own, it will use the "global" version.
|
||||
|
@ -13,23 +13,6 @@ import fr.neatmonster.nocheatplus.checks.access.CheckDataFactory;
|
||||
import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP M""M dP dP
|
||||
* ## mmmm. `M 88 88 M M 88 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP M M 88d888b. d8888P .d8888b. 88d888b. .d8888b. .d8888b. d8888P
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" M M 88' `88 88 88ooood8 88' `88 88' `88 88' `"" 88
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. M M 88 88 88 88. ... 88 88. .88 88. ... 88
|
||||
* M# .;M dP `88888P' `88888P' dP `YP M M dP dP dP `88888P' dP `88888P8 `88888P' dP
|
||||
* M#########M MMMM
|
||||
*
|
||||
* M""""""'YMM dP
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMMM M 88' `88 88 88' `88
|
||||
* M MMMM' .M 88. .88 88 88. .88
|
||||
* M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Player specific data for the block interact checks.
|
||||
*/
|
||||
|
@ -17,23 +17,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.combined.CombinedConfig;
|
||||
import fr.neatmonster.nocheatplus.utilities.BlockProperties;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP M""M dP dP
|
||||
* ## mmmm. `M 88 88 M M 88 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP M M 88d888b. d8888P .d8888b. 88d888b. .d8888b. .d8888b. d8888P
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" M M 88' `88 88 88ooood8 88' `88 88' `88 88' `"" 88
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. M M 88 88 88 88. ... 88 88. .88 88. ... 88
|
||||
* M# .;M dP `88888P' `88888P' dP `YP M M dP dP dP `88888P' dP `88888P8 `88888P' dP
|
||||
* M#########M MMMM
|
||||
*
|
||||
* M""MMMMMMMM oo dP
|
||||
* M MMMMMMMM 88
|
||||
* M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the block interact checks.
|
||||
*
|
||||
@ -66,14 +49,6 @@ public class BlockInteractListener extends CheckListener {
|
||||
@EventHandler(
|
||||
ignoreCancelled = false, priority = EventPriority.LOWEST)
|
||||
protected void onPlayerInteract(final PlayerInteractEvent event) {
|
||||
/*
|
||||
* ____ _ ___ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ |_ _|_ __ | |_ ___ _ __ __ _ ___| |_
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | || '_ \| __/ _ \ '__/ _` |/ __| __|
|
||||
* | __/| | (_| | |_| | __/ | | || | | | || __/ | | (_| | (__| |_
|
||||
* |_| |_|\__,_|\__, |\___|_| |___|_| |_|\__\___|_| \__,_|\___|\__|
|
||||
* |___/
|
||||
*/
|
||||
|
||||
// TODO: Re-arrange for interact spam, possibly move ender pearl stuff to a method.
|
||||
final Action action = event.getAction();
|
||||
|
@ -9,15 +9,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* M""""""'YMM oo dP oo
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M dP 88d888b. .d8888b. .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM M 88 88' `88 88ooood8 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMM' .M 88 88 88. ... 88. ... 88 88 88. .88 88 88
|
||||
* M .MM dP dP `88888P' `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Direction check will find out if a player tried to interact with something that's not in their field of view.
|
||||
*/
|
||||
|
@ -11,15 +11,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* MM"""""""`MM dP
|
||||
* MM mmmm, M 88
|
||||
* M' .M .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* MM MMMb. "M 88ooood8 88' `88 88' `"" 88' `88
|
||||
* MM MMMMM M 88. ... 88. .88 88. ... 88 88
|
||||
* MM MMMMM M `88888P' `88888P8 `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Reach check will find out if a player interacts with something that's too far away.
|
||||
*/
|
||||
|
@ -15,24 +15,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP MM"""""""`YM dP
|
||||
* ## mmmm. `M 88 88 MM mmmmm M 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP M' .M 88 .d8888b. .d8888b. .d8888b.
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" MM MMMMMMMM 88 88' `88 88' `"" 88ooood8
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. MM MMMMMMMM 88 88. .88 88. ... 88. ...
|
||||
* M# .;M dP `88888P' `88888P' dP `YP MM MMMMMMMM dP `88888P8 `88888P' `88888P'
|
||||
* M#########M MMMMMMMMMMMM
|
||||
*
|
||||
* MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 "
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the block place checks. Every world gets one of these assigned to it, or if a world
|
||||
* doesn't get it's own, it will use the "global" version.
|
||||
|
@ -10,23 +10,6 @@ import fr.neatmonster.nocheatplus.checks.access.CheckDataFactory;
|
||||
import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP MM"""""""`YM dP
|
||||
* ## mmmm. `M 88 88 MM mmmmm M 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP M' .M 88 .d8888b. .d8888b. .d8888b.
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" MM MMMMMMMM 88 88' `88 88' `"" 88ooood8
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. MM MMMMMMMM 88 88. .88 88. ... 88. ...
|
||||
* M# .;M dP `88888P' `88888P' dP `YP MM MMMMMMMM dP `88888P8 `88888P' `88888P'
|
||||
* M#########M MMMMMMMMMMMM
|
||||
*
|
||||
* M""""""'YMM dP
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMMM M 88' `88 88 88' `88
|
||||
* M MMMM' .M 88. .88 88 88. .88
|
||||
* M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Player specific dataFactory for the block place checks.
|
||||
*/
|
||||
|
@ -26,23 +26,6 @@ import fr.neatmonster.nocheatplus.compat.BridgeMisc;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.utilities.BlockProperties;
|
||||
|
||||
/*
|
||||
* M#"""""""'M dP dP MM"""""""`YM dP
|
||||
* ## mmmm. `M 88 88 MM mmmmm M 88
|
||||
* #' .M 88 .d8888b. .d8888b. 88 .dP M' .M 88 .d8888b. .d8888b. .d8888b.
|
||||
* M# MMMb.'YM 88 88' `88 88' `"" 88888" MM MMMMMMMM 88 88' `88 88' `"" 88ooood8
|
||||
* M# MMMM' M 88 88. .88 88. ... 88 `8b. MM MMMMMMMM 88 88. .88 88. ... 88. ...
|
||||
* M# .;M dP `88888P' `88888P' dP `YP MM MMMMMMMM dP `88888P8 `88888P' `88888P'
|
||||
* M#########M MMMMMMMMMMMM
|
||||
*
|
||||
* M""MMMMMMMM oo dP
|
||||
* M MMMMMMMM 88
|
||||
* M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the block place checks.
|
||||
*
|
||||
@ -194,14 +177,6 @@ public class BlockPlaceListener extends CheckListener {
|
||||
@EventHandler(
|
||||
priority = EventPriority.MONITOR)
|
||||
public void onPlayerAnimation(final PlayerAnimationEvent event) {
|
||||
/*
|
||||
* ____ _ _ _ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ / \ _ __ (_)_ __ ___ __ _| |_(_) ___ _ __
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| / _ \ | '_ \| | '_ ` _ \ / _` | __| |/ _ \| '_ \
|
||||
* | __/| | (_| | |_| | __/ | / ___ \| | | | | | | | | | (_| | |_| | (_) | | | |
|
||||
* |_| |_|\__,_|\__, |\___|_| /_/ \_\_| |_|_|_| |_| |_|\__,_|\__|_|\___/|_| |_|
|
||||
* |___/
|
||||
*/
|
||||
// Just set a flag to true when the arm was swung.
|
||||
BlockPlaceData.getData(event.getPlayer()).noSwingArmSwung = true;
|
||||
}
|
||||
@ -215,14 +190,6 @@ public class BlockPlaceListener extends CheckListener {
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onPlayerInteract(final PlayerInteractEvent event) {
|
||||
/*
|
||||
* ____ _ ___ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ |_ _|_ __ | |_ ___ _ __ __ _ ___| |_
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | || '_ \| __/ _ \ '__/ _` |/ __| __|
|
||||
* | __/| | (_| | |_| | __/ | | || | | | || __/ | | (_| | (__| |_
|
||||
* |_| |_|\__,_|\__, |\___|_| |___|_| |_|\__\___|_| \__,_|\___|\__|
|
||||
* |___/
|
||||
*/
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return;
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
|
@ -9,15 +9,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* M""""""'YMM oo dP oo
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M dP 88d888b. .d8888b. .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM M 88 88' `88 88ooood8 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMM' .M 88 88 88. ... 88. ... 88 88 88. .88 88 88
|
||||
* M .MM dP dP `88888P' `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Direction check will find out if a player tried to interact with something that's not in their field of view.
|
||||
*/
|
||||
|
@ -7,15 +7,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM""""""""`M dP MM"""""""`YM dP
|
||||
* MM mmmmmmmM 88 MM mmmmm M 88
|
||||
* M' MMMM .d8888b. .d8888b. d8888P M' .M 88 .d8888b. .d8888b. .d8888b.
|
||||
* MM MMMMMMMM 88' `88 Y8ooooo. 88 MM MMMMMMMM 88 88' `88 88' `"" 88ooood8
|
||||
* MM MMMMMMMM 88. .88 88 88 MM MMMMMMMM 88 88. .88 88. ... 88. ...
|
||||
* MM MMMMMMMM `88888P8 `88888P' dP MM MMMMMMMM dP `88888P8 `88888P' `88888P'
|
||||
* MMMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* A check used to verify if the player isn't placing blocks too quickly.
|
||||
*/
|
||||
|
@ -5,16 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MP""""""`MM oo
|
||||
* M mmmm. M M mmmmm..M
|
||||
* M MMMMM M .d8888b. M. `YM dP dP dP dP 88d888b. .d8888b.
|
||||
* M MMMMM M 88' `88 MMMMMMM. M 88 88 88 88 88' `88 88' `88
|
||||
* M MMMMM M 88. .88 M. .MMM' M 88.88b.88' 88 88 88 88. .88
|
||||
* M MMMMM M `88888P' Mb. .dM 8888P Y8P dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* We require that the player moves their arm between block places, this is what gets checked here.
|
||||
*/
|
||||
|
@ -12,15 +12,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* MM"""""""`MM dP
|
||||
* MM mmmm, M 88
|
||||
* M' .M .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* MM MMMb. "M 88ooood8 88' `88 88' `"" 88' `88
|
||||
* MM MMMMM M 88. ... 88. .88 88. ... 88 88
|
||||
* MM MMMMM M `88888P' `88888P8 `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Reach check will find out if a player interacts with something that's too far away.
|
||||
*/
|
||||
|
@ -5,16 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* MP""""""`MM dP
|
||||
* M mmmmm..M 88
|
||||
* M. `YM 88d888b. .d8888b. .d8888b. .d888b88
|
||||
* MMMMMMM. M 88' `88 88ooood8 88ooood8 88' `88
|
||||
* M. .MMM' M 88. .88 88. ... 88. ... 88. .88
|
||||
* Mb. .dM 88Y888P' `88888P' `88888P' `88888P8
|
||||
* MMMMMMMMMMM 88
|
||||
* dP
|
||||
*/
|
||||
/**
|
||||
* This check verifies if the player isn't throwing items too quickly, like eggs or arrows.
|
||||
*/
|
||||
|
@ -16,16 +16,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 88 M' .mmm. `M 88 "
|
||||
* M MMMMMooM 88d888b. .d8888b. d8888P M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88 88 88. .88 88 M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM dP dP `88888P8 dP MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the "chat" checks. Every world gets one of these assigned to it, or if a world doesn't
|
||||
* get it's own, it will use the "global" version.
|
||||
|
@ -10,15 +10,6 @@ import fr.neatmonster.nocheatplus.checks.access.CheckDataFactory;
|
||||
import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP M""""""'YMM dP
|
||||
* M' .mmm. `M 88 88 M mmmm. `M 88
|
||||
* * M MMMMMooM 88d888b. .d8888b. d8888P M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 M MMMMM M 88' `88 88 88' `88
|
||||
* M. `MMM' .M 88 88 88. .88 88 M MMMM' .M 88. .88 88 88. .88
|
||||
* MM. .dM dP dP `88888P8 dP M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Player specific data for the chat checks.
|
||||
*/
|
||||
|
@ -24,15 +24,6 @@ import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
import fr.neatmonster.nocheatplus.utilities.ds.prefixtree.SimpleCharPrefixTree;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP dP M""MMMMMMMM oo dP
|
||||
* M' .mmm. `M 88 88 M MMMMMMMM 88
|
||||
* M MMMMMooM 88d888b. .d8888b. d8888P M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* M. `MMM' .M 88 88 88. .88 88 M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* MM. .dM dP dP `88888P8 dP M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the chat checks.
|
||||
*
|
||||
|
@ -5,15 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.AsyncCheck;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP
|
||||
* M' .mmm. `M 88
|
||||
* M MMMMMooM .d8888b. 88 .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88' `88 88 88' `88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88. .88 88
|
||||
* MM. .dM `88888P' dP `88888P' dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Color check verifies that no color codes are sent in players' messages.
|
||||
*/
|
||||
|
@ -10,16 +10,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* MMP"""""""MM dP
|
||||
* M' .mmmm MM 88
|
||||
* M `M 88d888b. .d8888b. 88 .d8888b.
|
||||
* M MMMMM MM 88' `88 88' `88 88 88ooood8
|
||||
* M MMMMM MM 88 88 88. .88 88 88. ...
|
||||
* M MMMMM MM dP dP `8888P88 dP `88888P'
|
||||
* MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* A check used to verify if the player isn't using a forcefield in order to attack multiple entities at the same time.
|
||||
*
|
||||
|
@ -19,15 +19,6 @@ import fr.neatmonster.nocheatplus.utilities.BlockProperties;
|
||||
import fr.neatmonster.nocheatplus.utilities.StringUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM oo dP oo dP
|
||||
* M' .mmm. `M 88 88
|
||||
* M MMMMMooM 88d888b. dP d8888P dP .d8888b. .d8888b. 88
|
||||
* M MMMMMMMM 88' `88 88 88 88 88' `"" 88' `88 88
|
||||
* M. `MMM' .M 88 88 88 88 88. ... 88. .88 88
|
||||
* MM. .dM dP dP dP dP `88888P' `88888P8 dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* A check used to verify that critical hits done by players are legit.
|
||||
*/
|
||||
|
@ -9,15 +9,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* M""""""'YMM oo dP oo
|
||||
* M mmmm. `M 88
|
||||
* M MMMMM M dP 88d888b. .d8888b. .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM M 88 88' `88 88ooood8 88' `"" 88 88 88' `88 88' `88
|
||||
* M MMMM' .M 88 88 88. ... 88. ... 88 88 88. .88 88 88
|
||||
* M .MM dP dP `88888P' `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Direction check will find out if a player tried to interact with something that's not in their field of view.
|
||||
*/
|
||||
|
@ -15,16 +15,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* MM""""""""`M oo dP dP MM'""""'YMM .8888b oo
|
||||
* MM mmmmmmmM 88 88 M' .mmm. `M 88 "
|
||||
* M' MMMM dP .d8888b. 88d888b. d8888P M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* MM MMMMMMMM 88 88' `88 88' `88 88 M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* MM MMMMMMMM 88 88. .88 88 88 88 M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM MMMMMMMM dP `8888P88 dP dP dP MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMMM .88 MMMMMMMMMMM .88
|
||||
* d8888P d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the "fight" checks. Every world gets one of these assigned to it, or if a world doesn't
|
||||
* get it's own, it will use the "global" version.
|
||||
|
@ -17,16 +17,6 @@ import fr.neatmonster.nocheatplus.hooks.APIUtils;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
import fr.neatmonster.nocheatplus.utilities.PenaltyTime;
|
||||
|
||||
/*
|
||||
* MM""""""""`M oo dP dP M""""""'YMM dP
|
||||
* MM mmmmmmmM 88 88 M mmmm. `M 88
|
||||
* M' MMMM dP .d8888b. 88d888b. d8888P M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* MM MMMMMMMM 88 88' `88 88' `88 88 M MMMMM M 88' `88 88 88' `88
|
||||
* MM MMMMMMMM 88 88. .88 88 88 88 M MMMM' .M 88. .88 88 88. .88
|
||||
* MM MMMMMMMM dP `8888P88 dP dP dP M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMMM .88 MMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Player specific data for the fight checks.
|
||||
*/
|
||||
|
@ -36,16 +36,6 @@ import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.build.BuildParameters;
|
||||
|
||||
/*
|
||||
* MM""""""""`M oo dP dP M""MMMMMMMM oo dP
|
||||
* MM mmmmmmmM 88 88 M MMMMMMMM 88
|
||||
* M' MMMM dP .d8888b. 88d888b. d8888P M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* MM MMMMMMMM 88 88' `88 88' `88 88 M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* MM MMMMMMMM 88 88. .88 88 88 88 M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* MM MMMMMMMM dP `8888P88 dP dP dP M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMMM .88 MMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the fight checks.<br>
|
||||
* This listener is registered after the CombinedListener.
|
||||
@ -287,14 +277,6 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
||||
*/
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onEntityDamage(final EntityDamageEvent event) {
|
||||
/*
|
||||
* _____ _ _ _ ____
|
||||
* | ____|_ __ | |_(_) |_ _ _ | _ \ __ _ _ __ ___ __ _ __ _ ___
|
||||
* | _| | '_ \| __| | __| | | | | | | |/ _` | '_ ` _ \ / _` |/ _` |/ _ \
|
||||
* | |___| | | | |_| | |_| |_| | | |_| | (_| | | | | | | (_| | (_| | __/
|
||||
* |_____|_| |_|\__|_|\__|\__, | |____/ \__,_|_| |_| |_|\__,_|\__, |\___|
|
||||
* |___/ |___/
|
||||
*/
|
||||
|
||||
final Entity damaged = event.getEntity();
|
||||
final Player damagedPlayer = damaged instanceof Player ? (Player) damaged : null;
|
||||
@ -388,14 +370,6 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
protected void onEntityDeathEvent(final EntityDeathEvent event) {
|
||||
/*
|
||||
* _____ _ _ _ ____ _ _
|
||||
* | ____|_ __ | |_(_) |_ _ _ | _ \ ___ __ _| |_| |__
|
||||
* | _| | '_ \| __| | __| | | | | | | |/ _ \/ _` | __| '_ \
|
||||
* | |___| | | | |_| | |_| |_| | | |_| | __/ (_| | |_| | | |
|
||||
* |_____|_| |_|\__|_|\__|\__, | |____/ \___|\__,_|\__|_| |_|
|
||||
* |___/
|
||||
*/
|
||||
// Only interested in dying players.
|
||||
final Entity entity = event.getEntity();
|
||||
if (entity instanceof Player){
|
||||
@ -412,14 +386,6 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
protected void onPlayerAnimation(final PlayerAnimationEvent event) {
|
||||
/*
|
||||
* ____ _ _ _ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ / \ _ __ (_)_ __ ___ __ _| |_(_) ___ _ __
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| / _ \ | '_ \| | '_ ` _ \ / _` | __| |/ _ \| '_ \
|
||||
* | __/| | (_| | |_| | __/ | / ___ \| | | | | | | | | | (_| | |_| | (_) | | | |
|
||||
* |_| |_|\__,_|\__, |\___|_| /_/ \_\_| |_|_|_| |_| |_|\__,_|\__|_|\___/|_| |_|
|
||||
* |___/
|
||||
*/
|
||||
// Set a flag telling us that the arm has been swung.
|
||||
FightData.getData(event.getPlayer()).noSwingArmSwung = true;
|
||||
}
|
||||
|
@ -9,15 +9,6 @@ import fr.neatmonster.nocheatplus.compat.BridgeHealth;
|
||||
import fr.neatmonster.nocheatplus.utilities.CheckUtils;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM'"""""`MM dP M"""""`'"""`YM dP
|
||||
* M' .mmm. `M 88 M mm. mm. M 88
|
||||
* M MMMMMMMM .d8888b. .d888b88 M MMM MMM M .d8888b. .d888b88 .d8888b.
|
||||
* M MMM `M 88' `88 88' `88 M MMM MMM M 88' `88 88' `88 88ooood8
|
||||
* M. `MMM' .M 88. .88 88. .88 M MMM MMM M 88. .88 88. .88 88. ...
|
||||
* MM. .MM `88888P' `88888P8 M MMM MMM M `88888P' `88888P8 `88888P'
|
||||
* MMMMMMMMMMM MMMMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The GodMode check will find out if a player tried to stay invulnerable after being hit or after dying.
|
||||
*/
|
||||
|
@ -7,15 +7,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* M""MMMMM""M dP dP dP
|
||||
* M MMMM' .M 88 88 88
|
||||
* M .MM 88d888b. .d8888b. .d8888b. 88 .dP 88d888b. .d8888b. .d8888b. 88 .dP
|
||||
* M MMMb. YM 88' `88 88' `88 88' `"" 88888" 88' `88 88' `88 88' `"" 88888"
|
||||
* M MMMMb M 88 88 88. .88 88. ... 88 `8b. 88. .88 88. .88 88. ... 88 `8b.
|
||||
* M MMMMM M dP dP `88888P' `88888P' dP `YP 88Y8888' `88888P8 `88888P' dP `YP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* A check used to verify if players aren't "knockbacking" other players when it's not technically possible.
|
||||
*/
|
||||
|
@ -5,16 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MP""""""`MM oo
|
||||
* M mmmm. M M mmmmm..M
|
||||
* M MMMMM M .d8888b. M. `YM dP dP dP dP 88d888b. .d8888b.
|
||||
* M MMMMM M 88' `88 MMMMMMM. M 88 88 88 88 88' `88 88' `88
|
||||
* M MMMMM M 88. .88 M. .MMM' M 88.88b.88' 88 88 88 88. .88
|
||||
* * M MMMMM M `88888P' Mb. .dM 8888P Y8P dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* We require that the player moves their arm between attacks, this is basically what gets checked here.
|
||||
*/
|
||||
|
@ -16,15 +16,6 @@ import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.utilities.StringUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM"""""""`MM dP
|
||||
* MM mmmm, M 88
|
||||
* M' .M .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* MM MMMb. "M 88ooood8 88' `88 88' `"" 88' `88
|
||||
* MM MMMMM M 88. ... 88. .88 88. ... 88 88
|
||||
* MM MMMMM M `88888P' `88888P8 `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The Reach check will find out if a player interacts with something that's too far away.
|
||||
*/
|
||||
|
@ -10,16 +10,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MP""""""`MM dP
|
||||
* M mmmmm..M 88
|
||||
* M. `YM 88d888b. .d8888b. .d8888b. .d888b88
|
||||
* MMMMMMM. M 88' `88 88ooood8 88ooood8 88' `88
|
||||
* M. .MMM' M 88. .88 88. ... 88. ... 88. .88
|
||||
* Mb. .dM 88Y888P' `88888P' `88888P' `88888P8
|
||||
* MMMMMMMMMMM 88
|
||||
* dP
|
||||
*/
|
||||
/**
|
||||
* The Speed check is used to detect players who are attacking entities too quickly.
|
||||
*/
|
||||
|
@ -5,16 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* M""""""'YMM
|
||||
* M mmmm. `M
|
||||
* M MMMMM M 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMM M 88' `88 88' `88 88' `88
|
||||
* M MMMM' .M 88 88. .88 88. .88
|
||||
* M .MM dP `88888P' 88Y888P'
|
||||
* MMMMMMMMMMM 88
|
||||
* dP
|
||||
*/
|
||||
/**
|
||||
* The Drop check will find out if a player drops too many items within a short amount of time.
|
||||
*/
|
||||
|
@ -12,15 +12,6 @@ import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.utilities.InventoryUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* MM""""""""`M dP MM'""""'YMM dP oo dP
|
||||
* MM mmmmmmmM 88 M' .mmm. `M 88 88
|
||||
* M' MMMM .d8888b. .d8888b. d8888P M MMMMMooM 88 dP .d8888b. 88 .dP
|
||||
* MM MMMMMMMM 88' `88 Y8ooooo. 88 M MMMMMMMM 88 88 88' `"" 88888"
|
||||
* MM MMMMMMMM 88. .88 88 88 M. `MMM' .M 88 88 88. ... 88 `8b.
|
||||
* MM MMMMMMMM `88888P8 `88888P' dP MM. .dM dP dP `88888P' dP `YP
|
||||
* MMMMMMMMMMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The FastClick check will prevents players from taking automatically all items from any inventory (chests, etc.).
|
||||
*/
|
||||
|
@ -8,15 +8,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* M""M dP dP M#"""""""'M
|
||||
* M M 88 88 ## mmmm. `M
|
||||
* M M 88d888b. .d8888b. d8888P .d8888b. 88d888b. d8888P #' .M .d8888b. dP dP dP
|
||||
* M M 88' `88 Y8ooooo. 88 88' `88 88' `88 88 M# MMMb.'YM 88' `88 88 88 88
|
||||
* M M 88 88 88 88 88. .88 88 88 88 M# MMMM' M 88. .88 88.88b.88'
|
||||
* M M dP dP `88888P' dP `88888P8 dP dP dP M# .;M `88888P' 8888P Y8P
|
||||
* MMMM M#########M
|
||||
*/
|
||||
/**
|
||||
* The InstantBow check will find out if a player pulled the string of their bow too fast.
|
||||
*/
|
||||
|
@ -9,15 +9,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
|
||||
/*
|
||||
* M""M dP dP MM""""""""`M dP
|
||||
* M M 88 88 MM mmmmmmmM 88
|
||||
* M M 88d888b. .d8888b. d8888P .d8888b. 88d888b. d8888P M` MMMM .d8888b. d8888P
|
||||
* M M 88' `88 Y8ooooo. 88 88' `88 88' `88 88 MM MMMMMMMM 88' `88 88
|
||||
* M M 88 88 88 88 88. .88 88 88 88 MM MMMMMMMM 88. .88 88
|
||||
* M M dP dP `88888P' dP `88888P8 dP dP dP MM .M `88888P8 dP
|
||||
* MMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The InstantEat check will find out if a player eats their food too fast.
|
||||
*/
|
||||
|
@ -17,25 +17,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* M""M dP
|
||||
* M M 88
|
||||
* M M 88d888b. dP .dP .d8888b. 88d888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* M M 88' `88 88 d8' 88ooood8 88' `88 88 88' `88 88' `88 88 88
|
||||
* M M 88 88 88 .88' 88. ... 88 88 88 88. .88 88 88. .88
|
||||
* M M dP dP 8888P' `88888P' dP dP dP `88888P' dP `8888P88
|
||||
* MMMM .88
|
||||
* d8888P
|
||||
*
|
||||
* MM'""""'YMM .8888b oo
|
||||
* M' .mmm. `M 88 "
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the "inventory" checks. Every world gets one of
|
||||
* these assigned to it, or if a world doesn't get it's own, it will use the
|
||||
|
@ -11,16 +11,6 @@ import fr.neatmonster.nocheatplus.checks.access.CheckDataFactory;
|
||||
import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionFrequency;
|
||||
|
||||
/*
|
||||
* M""M dP M""""""'YMM dP
|
||||
* M M 88 M mmmm. `M 88
|
||||
* M M 88d888b. dP .dP .d8888b. 88d888b. d8888P .d8888b. 88d888b. dP dP M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M M 88' `88 88 d8' 88ooood8 88' `88 88 88' `88 88' `88 88 88 M MMMMM M 88' `88 88 88' `88
|
||||
* M M 88 88 88 .88' 88. ... 88 88 88 88. .88 88 88. .88 M MMMM' .M 88. .88 88 88. .88
|
||||
* M M dP dP 8888P' `88888P' dP dP dP `88888P' dP `8888P88 M .MM `88888P8 dP `88888P8
|
||||
* MMMM .88 MMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Player specific dataFactory for the inventory checks.
|
||||
*/
|
||||
|
@ -32,24 +32,6 @@ import fr.neatmonster.nocheatplus.checks.combined.Improbable;
|
||||
import fr.neatmonster.nocheatplus.components.JoinLeaveListener;
|
||||
import fr.neatmonster.nocheatplus.utilities.InventoryUtil;
|
||||
|
||||
/*
|
||||
* M""M dP
|
||||
* M M 88
|
||||
* M M 88d888b. dP .dP .d8888b. 88d888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* M M 88' `88 88 d8' 88ooood8 88' `88 88 88' `88 88' `88 88 88
|
||||
* M M 88 88 88 .88' 88. ... 88 88 88 88. .88 88 88. .88
|
||||
* M M dP dP 8888P' `88888P' dP dP dP `88888P' dP `8888P88
|
||||
* MMMM .88
|
||||
* d8888P
|
||||
*
|
||||
* M""MMMMMMMM oo dP
|
||||
* M MMMMMMMM 88
|
||||
* M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the inventory checks.
|
||||
*
|
||||
@ -86,14 +68,6 @@ public class InventoryListener extends CheckListener implements JoinLeaveListen
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onEntityShootBow(final EntityShootBowEvent event) {
|
||||
/*
|
||||
* _____ _ _ _ ____ _ _ ____
|
||||
* | ____|_ __ | |_(_) |_ _ _ / ___|| |__ ___ ___ | |_ | __ ) _____ __
|
||||
* | _| | '_ \| __| | __| | | | \___ \| '_ \ / _ \ / _ \| __| | _ \ / _ \ \ /\ / /
|
||||
* | |___| | | | |_| | |_| |_| | ___) | | | | (_) | (_) | |_ | |_) | (_) \ V V /
|
||||
* |_____|_| |_|\__|_|\__|\__, | |____/|_| |_|\___/ \___/ \__| |____/ \___/ \_/\_/
|
||||
* |___/
|
||||
*/
|
||||
// Only if a player shot the arrow.
|
||||
if (event.getEntity() instanceof Player) {
|
||||
final Player player = (Player) event.getEntity();
|
||||
@ -127,14 +101,6 @@ public class InventoryListener extends CheckListener implements JoinLeaveListen
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onFoodLevelChange(final FoodLevelChangeEvent event) {
|
||||
/*
|
||||
* _____ _ _ _ ____ _
|
||||
* | ___|__ ___ __| | | | _____ _____| | / ___| |__ __ _ _ __ __ _ ___
|
||||
* | |_ / _ \ / _ \ / _` | | | / _ \ \ / / _ \ | | | | '_ \ / _` | '_ \ / _` |/ _ \
|
||||
* | _| (_) | (_) | (_| | | |__| __/\ V / __/ | | |___| | | | (_| | | | | (_| | __/
|
||||
* |_| \___/ \___/ \__,_| |_____\___| \_/ \___|_| \____|_| |_|\__,_|_| |_|\__, |\___|
|
||||
* |___/
|
||||
*/
|
||||
// Only if a player ate food.
|
||||
if (event.getEntity() instanceof Player) {
|
||||
final Player player = (Player) event.getEntity();
|
||||
@ -153,14 +119,6 @@ public class InventoryListener extends CheckListener implements JoinLeaveListen
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onInventoryClick(final InventoryClickEvent event) {
|
||||
/*
|
||||
* ___ _ ____ _ _ _
|
||||
* |_ _|_ ____ _____ _ __ | |_ ___ _ __ _ _ / ___| (_) ___| | __
|
||||
* | || '_ \ \ / / _ \ '_ \| __/ _ \| '__| | | | | | | | |/ __| |/ /
|
||||
* | || | | \ V / __/ | | | || (_) | | | |_| | | |___| | | (__| <
|
||||
* |___|_| |_|\_/ \___|_| |_|\__\___/|_| \__, | \____|_|_|\___|_|\_\
|
||||
* |___/
|
||||
*/
|
||||
if (event.getWhoClicked() instanceof Player) {
|
||||
final long now = System.currentTimeMillis();
|
||||
final HumanEntity entity = event.getWhoClicked();
|
||||
@ -214,14 +172,6 @@ public class InventoryListener extends CheckListener implements JoinLeaveListen
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
protected void onPlayerDropItem(final PlayerDropItemEvent event) {
|
||||
/*
|
||||
* ____ _ ____
|
||||
* | _ \| | __ _ _ _ ___ _ __ | _ \ _ __ ___ _ __
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | | | | '__/ _ \| '_ \
|
||||
* | __/| | (_| | |_| | __/ | | |_| | | | (_) | |_) |
|
||||
* |_| |_|\__,_|\__, |\___|_| |____/|_| \___/| .__/
|
||||
* |___/ |_|
|
||||
*/
|
||||
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
@ -256,14 +206,6 @@ public class InventoryListener extends CheckListener implements JoinLeaveListen
|
||||
*/
|
||||
@EventHandler(ignoreCancelled = false, priority = EventPriority.LOWEST)
|
||||
public final void onPlayerInteract(final PlayerInteractEvent event) {
|
||||
/*
|
||||
* ____ _ ___ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ |_ _|_ __ | |_ ___ _ __ __ _ ___| |_
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | || '_ \| __/ _ \ '__/ _` |/ __| __|
|
||||
* | __/| | (_| | |_| | __/ | | || | | | || __/ | | (_| | (__| |_
|
||||
* |_| |_|\__,_|\__, |\___|_| |___|_| |_|\__\___|_| \__,_|\___|\__|
|
||||
* |___/
|
||||
*/
|
||||
// Only interested in right-clicks while holding an item.
|
||||
if (event.getAction() != Action.RIGHT_CLICK_AIR && event.getAction() != Action.RIGHT_CLICK_BLOCK)
|
||||
return;
|
||||
|
@ -12,16 +12,6 @@ import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.utilities.PlayerLocation;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP oo MM""""""""`M dP
|
||||
* M' .mmm. `M 88 MM mmmmmmmM 88
|
||||
* M MMMMMooM 88d888b. .d8888b. .d8888b. d8888P dP dP .dP .d8888b. M' MMMM 88 dP dP
|
||||
* M MMMMMMMM 88' `88 88ooood8 88' `88 88 88 88 d8' 88ooood8 MM MMMMMMMM 88 88 88
|
||||
* M. `MMM' .M 88 88. ... 88. .88 88 88 88 .88' 88. ... MM MMMMMMMM 88 88. .88
|
||||
* MM. .dM dP `88888P' `88888P8 dP dP 8888P' `88888P' MM MMMMMMMM dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* A check designed for people that are allowed to fly. The complement to the "SurvivalFly", which is for people that
|
||||
* aren't allowed to fly, and therefore have tighter rules to obey.
|
||||
|
@ -11,15 +11,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.utilities.PlayerLocation;
|
||||
|
||||
/*
|
||||
* M"""""`'"""`YM MM"""""""`YM dP dP
|
||||
* M mm. mm. M MM mmmmm M 88 88
|
||||
* M MMM MMM M .d8888b. 88d888b. .d8888b. M' .M .d8888b. .d8888b. 88 .dP .d8888b. d8888P .d8888b.
|
||||
* M MMM MMM M 88' `88 88' `88 88ooood8 MM MMMMMMMM 88' `88 88' `"" 88888" 88ooood8 88 Y8ooooo.
|
||||
* M MMM MMM M 88. .88 88 88. ... MM MMMMMMMM 88. .88 88. ... 88 `8b. 88. ... 88 88
|
||||
* M MMM MMM M `88888P' dP `88888P' MM MMMMMMMM `88888P8 `88888P' dP `YP `88888P' dP `88888P'
|
||||
* MMMMMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The MorePackets check (previously called Speedhack check) will try to identify players that send more than the usual
|
||||
* amount of move-packets to the server to be able to move faster than normal, without getting caught by the other
|
||||
|
@ -11,23 +11,6 @@ import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
|
||||
/*
|
||||
* M"""""`'"""`YM MM"""""""`YM dP dP
|
||||
* M mm. mm. M MM mmmmm M 88 88
|
||||
* M MMM MMM M .d8888b. 88d888b. .d8888b. M' .M .d8888b. .d8888b. 88 .dP .d8888b. d8888P .d8888b.
|
||||
* M MMM MMM M 88' `88 88' `88 88ooood8 MM MMMMMMMM 88' `88 88' `"" 88888" 88ooood8 88 Y8ooooo.
|
||||
* M MMM MMM M 88. .88 88 88. ... MM MMMMMMMM 88. .88 88. ... 88 `8b. 88. ... 88 88
|
||||
* M MMM MMM M `88888P' dP `88888P' MM MMMMMMMM `88888P8 `88888P' dP `YP `88888P' dP `88888P'
|
||||
* MMMMMMMMMMMMMM MMMMMMMMMMMM
|
||||
*
|
||||
* M""MMMMM""M dP oo dP
|
||||
* M MMMMM M 88 88
|
||||
* M MMMMP M .d8888b. 88d888b. dP .d8888b. dP dP 88 .d8888b.
|
||||
* M MMMM' .M 88ooood8 88' `88 88 88' `"" 88 88 88 88ooood8
|
||||
* M MMP' .MM 88. ... 88 88 88 88. ... 88. .88 88 88. ...
|
||||
* M .dMMM `88888P' dP dP dP `88888P' `88888P' dP `88888P'
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* This check does the exact same thing as the MorePacket check but this one works for players inside vehicles.
|
||||
*/
|
||||
|
@ -15,16 +15,6 @@ import fr.neatmonster.nocheatplus.config.ConfigFile;
|
||||
import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
|
||||
/*
|
||||
* M"""""`'"""`YM oo MM'""""'YMM .8888b oo
|
||||
* M mm. mm. M M' .mmm. `M 88 "
|
||||
* M MMM MMM M .d8888b. dP .dP dP 88d888b. .d8888b. M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMM MMM M 88' `88 88 d8' 88 88' `88 88' `88 M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M MMM MMM M 88. .88 88 .88' 88 88 88 88. .88 M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* M MMM MMM M `88888P' 8888P' dP dP dP `8888P88 MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMMMMM .88 MMMMMMMMMMM .88
|
||||
* d8888P d8888P
|
||||
*/
|
||||
/**
|
||||
* Configurations specific for the moving checks. Every world gets one of these assigned to it.
|
||||
*/
|
||||
|
@ -16,16 +16,6 @@ import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
||||
import fr.neatmonster.nocheatplus.utilities.ActionAccumulator;
|
||||
import fr.neatmonster.nocheatplus.utilities.PlayerLocation;
|
||||
|
||||
/*
|
||||
* M"""""`'"""`YM oo M""""""'YMM dP
|
||||
* M mm. mm. M M mmmm. `M 88
|
||||
* M MMM MMM M .d8888b. dP .dP dP 88d888b. .d8888b. M MMMMM M .d8888b. d8888P .d8888b.
|
||||
* M MMM MMM M 88' `88 88 d8' 88 88' `88 88' `88 M MMMMM M 88' `88 88 88' `88
|
||||
* M MMM MMM M 88. .88 88 .88' 88 88 88 88. .88 M MMMM' .M 88. .88 88 88. .88
|
||||
* M MMM MMM M `88888P' 8888P' dP dP dP `8888P88 M .MM `88888P8 dP `88888P8
|
||||
* MMMMMMMMMMMMMM .88 MMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Player specific data for the moving checks.
|
||||
*/
|
||||
|
@ -74,24 +74,6 @@ import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.build.BuildParameters;
|
||||
|
||||
/*
|
||||
* M"""""`'"""`YM oo
|
||||
* M mm. mm. M
|
||||
* M MMM MMM M .d8888b. dP .dP dP 88d888b. .d8888b.
|
||||
* M MMM MMM M 88' `88 88 d8' 88 88' `88 88' `88
|
||||
* M MMM MMM M 88. .88 88 .88' 88 88 88 88. .88
|
||||
* M MMM MMM M `88888P' 8888P' dP dP dP `8888P88
|
||||
* MMMMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*
|
||||
* M""MMMMMMMM oo dP
|
||||
* M MMMMMMMM 88
|
||||
* M MMMMMMMM dP .d8888b. d8888P .d8888b. 88d888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88 Y8ooooo. 88 88ooood8 88' `88 88ooood8 88' `88
|
||||
* M MMMMMMMM 88 88 88 88. ... 88 88 88. ... 88
|
||||
* M M dP `88888P' dP `88888P' dP dP `88888P' dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Central location to listen to events that are relevant for the moving checks.
|
||||
*
|
||||
@ -213,13 +195,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.MONITOR)
|
||||
public void onBlockPlace(final BlockPlaceEvent event) {
|
||||
/*
|
||||
* ____ _ _ ____ _
|
||||
* | __ )| | ___ ___| | __ | _ \| | __ _ ___ ___
|
||||
* | _ \| |/ _ \ / __| |/ / | |_) | |/ _` |/ __/ _ \
|
||||
* | |_) | | (_) | (__| < | __/| | (_| | (_| __/
|
||||
* |____/|_|\___/ \___|_|\_\ |_| |_|\__,_|\___\___|
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
// Ignore players inside a vehicle.
|
||||
@ -269,14 +244,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
priority = EventPriority.MONITOR)
|
||||
public void onPlayerBedEnter(final PlayerBedEnterEvent event) {
|
||||
/*
|
||||
* ____ _ ____ _ _____ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ | __ ) ___ __| | | ____|_ __ | |_ ___ _ __
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | _ \ / _ \/ _` | | _| | '_ \| __/ _ \ '__|
|
||||
* | __/| | (_| | |_| | __/ | | |_) | __/ (_| | | |___| | | | || __/ |
|
||||
* |_| |_|\__,_|\__, |\___|_| |____/ \___|\__,_| |_____|_| |_|\__\___|_|
|
||||
* |___/
|
||||
*/
|
||||
CombinedData.getData(event.getPlayer()).wasInBed = true;
|
||||
}
|
||||
|
||||
@ -289,14 +256,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
priority = EventPriority.MONITOR)
|
||||
public void onPlayerBedLeave(final PlayerBedLeaveEvent event) {
|
||||
/*
|
||||
* ____ _ ____ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ | __ ) ___ __| | | | ___ __ ___ _____
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | _ \ / _ \/ _` | | | / _ \/ _` \ \ / / _ \
|
||||
* | __/| | (_| | |_| | __/ | | |_) | __/ (_| | | |__| __/ (_| |\ V / __/
|
||||
* |_| |_|\__,_|\__, |\___|_| |____/ \___|\__,_| |_____\___|\__,_| \_/ \___|
|
||||
* |___/
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
if (bedLeave.isEnabled(player) && bedLeave.checkBed(player)) {
|
||||
@ -341,14 +300,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
priority = EventPriority.MONITOR)
|
||||
public void onPlayerChangedWorld(final PlayerChangedWorldEvent event) {
|
||||
/*
|
||||
* ____ _ ____ _ _ __ __ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ / ___| |__ __ _ _ __ __ _ ___ __| | \ \ / /__ _ __| | __| |
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | | | '_ \ / _` | '_ \ / _` |/ _ \/ _` | \ \ /\ / / _ \| '__| |/ _` |
|
||||
* | __/| | (_| | |_| | __/ | | |___| | | | (_| | | | | (_| | __/ (_| | \ V V / (_) | | | | (_| |
|
||||
* |_| |_|\__,_|\__, |\___|_| \____|_| |_|\__,_|_| |_|\__, |\___|\__,_| \_/\_/ \___/|_| |_|\__,_|
|
||||
* |___/ |___/
|
||||
*/
|
||||
// Maybe this helps with people teleporting through Multiverse portals having problems?
|
||||
final Player player = event.getPlayer();
|
||||
final MovingData data = MovingData.getData(player);
|
||||
@ -367,20 +318,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.MONITOR)
|
||||
public void onPlayerGameModeChange(final PlayerGameModeChangeEvent event) {
|
||||
/*
|
||||
* ____ _ ____ __ __ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ / ___| __ _ _ __ ___ ___| \/ | ___ __| | ___
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | | _ / _` | '_ ` _ \ / _ \ |\/| |/ _ \ / _` |/ _ \
|
||||
* | __/| | (_| | |_| | __/ | | |_| | (_| | | | | | | __/ | | | (_) | (_| | __/
|
||||
* |_| |_|\__,_|\__, |\___|_| \____|\__,_|_| |_| |_|\___|_| |_|\___/ \__,_|\___|
|
||||
* |___/
|
||||
* ____ _
|
||||
* / ___| |__ __ _ _ __ __ _ ___
|
||||
* | | | '_ \ / _` | '_ \ / _` |/ _ \
|
||||
* | |___| | | | (_| | | | | (_| | __/
|
||||
* \____|_| |_|\__,_|_| |_|\__, |\___|
|
||||
* |___/
|
||||
*/
|
||||
if (event.getPlayer().getGameMode() == GameMode.CREATIVE || event.getNewGameMode() == GameMode.CREATIVE) {
|
||||
final MovingData data = MovingData.getData(event.getPlayer());
|
||||
data.clearFlyData();
|
||||
@ -399,16 +336,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||
public void onPlayerMove(final PlayerMoveEvent event) {
|
||||
/*
|
||||
* _____ _ __ __
|
||||
* | __ \| | | \/ |
|
||||
* | |__) | | __ _ _ _ ___ _ __ | \ / | _____ _____
|
||||
* | ___/| |/ _` | | | |/ _ \ '__| | |\/| |/ _ \ \ / / _ \
|
||||
* | | | | (_| | |_| | __/ | | | | | (_) \ V / __/
|
||||
* |_| |_|\__,_|\__, |\___|_| |_| |_|\___/ \_/ \___|
|
||||
* __/ |
|
||||
* |___/
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
|
||||
// Store the event for monitor level checks.
|
||||
@ -787,14 +714,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.MONITOR)
|
||||
public void onPlayerPortal(final PlayerPortalEvent event) {
|
||||
/*
|
||||
* ____ _ ____ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ | _ \ ___ _ __| |_ __ _| |
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | |_) / _ \| '__| __/ _` | |
|
||||
* | __/| | (_| | |_| | __/ | | __/ (_) | | | || (_| | |
|
||||
* |_| |_|\__,_|\__, |\___|_| |_| \___/|_| \__\__,_|_|
|
||||
* |___/
|
||||
*/
|
||||
final MovingData data = MovingData.getData(event.getPlayer());
|
||||
data.clearFlyData();
|
||||
data.clearMorePacketsData();
|
||||
@ -810,14 +729,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerRespawn(final PlayerRespawnEvent event) {
|
||||
/*
|
||||
* ____ _ ____
|
||||
* | _ \| | __ _ _ _ ___ _ __ | _ \ ___ ___ _ __ __ ___ ___ __
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | |_) / _ \/ __| '_ \ / _` \ \ /\ / / '_ \
|
||||
* | __/| | (_| | |_| | __/ | | _ < __/\__ \ |_) | (_| |\ V V /| | | |
|
||||
* |_| |_|\__,_|\__, |\___|_| |_| \_\___||___/ .__/ \__,_| \_/\_/ |_| |_|
|
||||
* |___/ |_|
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
final MovingData data = MovingData.getData(player);
|
||||
data.clearFlyData();
|
||||
@ -858,14 +769,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
*/
|
||||
@EventHandler(ignoreCancelled = false, priority = EventPriority.HIGHEST)
|
||||
public void onPlayerTeleport(final PlayerTeleportEvent event) {
|
||||
/*
|
||||
* ____ _ _____ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ |_ _|__| | ___ _ __ ___ _ __| |_
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| | |/ _ \ |/ _ \ '_ \ / _ \| '__| __|
|
||||
* | __/| | (_| | |_| | __/ | | | __/ | __/ |_) | (_) | | | |_
|
||||
* |_| |_|\__,_|\__, |\___|_| |_|\___|_|\___| .__/ \___/|_| \__|
|
||||
* |___/ |_|
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
final MovingData data = MovingData.getData(player);
|
||||
final Location teleported = data.getTeleported();
|
||||
@ -1021,14 +924,6 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
@EventHandler(
|
||||
ignoreCancelled = true, priority = EventPriority.MONITOR)
|
||||
public void onPlayerVelocity(final PlayerVelocityEvent event) {
|
||||
/*
|
||||
* ____ _ __ __ _ _ _
|
||||
* | _ \| | __ _ _ _ ___ _ __ \ \ / /__| | ___ ___(_) |_ _ _
|
||||
* | |_) | |/ _` | | | |/ _ \ '__| \ \ / / _ \ |/ _ \ / __| | __| | | |
|
||||
* | __/| | (_| | |_| | __/ | \ V / __/ | (_) | (__| | |_| |_| |
|
||||
* |_| |_|\__,_|\__, |\___|_| \_/ \___|_|\___/ \___|_|\__|\__, |
|
||||
* |___/ |___/
|
||||
*/
|
||||
final Player player = event.getPlayer();
|
||||
final MovingData data = MovingData.getData(player);
|
||||
// Ignore velocity if inside of vehicles.
|
||||
|
@ -12,15 +12,6 @@ import fr.neatmonster.nocheatplus.compat.BridgeHealth;
|
||||
import fr.neatmonster.nocheatplus.utilities.PlayerLocation;
|
||||
import fr.neatmonster.nocheatplus.utilities.StringUtil;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MM""""""""`M dP dP
|
||||
* M mmmm. M MM mmmmmmmM 88 88
|
||||
* M MMMMM M .d8888b. M' MMMM .d8888b. 88 88
|
||||
* M MMMMM M 88' `88 MM MMMMMMMM 88' `88 88 88
|
||||
* M MMMMM M 88. .88 MM MMMMMMMM 88. .88 88 88
|
||||
* M MMMMM M `88888P' MM MMMMMMMM `88888P8 dP dP
|
||||
* MMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* A check to see if people cheat by tricking the server to not deal them fall damage.
|
||||
*/
|
||||
|
@ -21,16 +21,6 @@ import fr.neatmonster.nocheatplus.utilities.StringUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.build.BuildParameters;
|
||||
|
||||
/*
|
||||
* MP""""""`MM oo dP MM""""""""`M dP
|
||||
* M mmmmm..M 88 MM mmmmmmmM 88
|
||||
* M. `YM dP dP 88d888b. dP .dP dP dP .dP .d8888b. 88 M' MMMM 88 dP dP
|
||||
* MMMMMMM. M 88 88 88' `88 88 d8' 88 88 d8' 88' `88 88 MM MMMMMMMM 88 88 88
|
||||
* M. .MMM' M 88. .88 88 88 .88' 88 88 .88' 88. .88 88 MM MMMMMMMM 88 88. .88
|
||||
* Mb. .dM `88888P' dP 8888P' dP 8888P' `88888P8 dP MM MMMMMMMM dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* The counterpart to the CreativeFly check. People that are not allowed to fly get checked by this. It will try to
|
||||
* identify when they are jumping, check if they aren't jumping too high or far, check if they aren't moving too fast on
|
||||
|
@ -36,23 +36,6 @@ import fr.neatmonster.nocheatplus.config.ConfigManager;
|
||||
import fr.neatmonster.nocheatplus.permissions.Permissions;
|
||||
import fr.neatmonster.nocheatplus.utilities.ColorUtil;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM dP
|
||||
* M' .mmm. `M 88
|
||||
* M MMMMMooM .d8888b. 88d8b.d8b. 88d8b.d8b. .d8888b. 88d888b. .d888b88
|
||||
* M MMMMMMMM 88' `88 88'`88'`88 88'`88'`88 88' `88 88' `88 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88 88 88. .88 88 88 88. .88
|
||||
* MM. .dM `88888P' dP dP dP dP dP dP `88888P8 dP dP `88888P8
|
||||
* MMMMMMMMMMM
|
||||
*
|
||||
* M""MMMMM""MM dP dP
|
||||
* M MMMMM MM 88 88
|
||||
* M `M .d8888b. 88d888b. .d888b88 88 .d8888b. 88d888b.
|
||||
* M MMMMM MM 88' `88 88' `88 88' `88 88 88ooood8 88' `88
|
||||
* M MMMMM MM 88. .88 88 88 88. .88 88 88. ... 88
|
||||
* M MMMMM MM `88888P8 dP dP `88888P8 dP `88888P' dP
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The /nocheatplus or /ncp command handler, delegates to sub commands.
|
||||
*/
|
||||
@ -139,13 +122,6 @@ public class NoCheatPlusCommand extends BaseCommand{
|
||||
@Override
|
||||
public boolean onCommand(final CommandSender sender, final Command command, final String commandLabel,
|
||||
final String[] args) {
|
||||
/*
|
||||
* ____ _
|
||||
* / ___|___ _ __ ___ _ __ ___ __ _ _ __ __| |
|
||||
* | | / _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` |
|
||||
* | |__| (_) | | | | | | | | | | | (_| | | | | (_| |
|
||||
* \____\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|
|
||||
*/
|
||||
|
||||
if (!command.getName().equalsIgnoreCase("nocheatplus")){
|
||||
// Not our command, how did it get here?
|
||||
|
@ -1,14 +1,5 @@
|
||||
package fr.neatmonster.nocheatplus.config;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM .8888b MM"""""""`YM dP dP
|
||||
* M' .mmm. `M 88 " MM mmmmm M 88 88
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa M' .M .d8888b. d8888P 88d888b. .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 MM MMMMMMMM 88' `88 88 88' `88 Y8ooooo.
|
||||
* M. `MMM' .M 88. .88 88 88 88 MM MMMMMMMM 88. .88 88 88 88 88
|
||||
* MM. .dM `88888P' dP dP dP MM MMMMMMMM `88888P8 dP dP dP `88888P'
|
||||
* MMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Paths for the configuration options. Making everything final static prevents accidentally modifying any of these.
|
||||
*/
|
||||
@ -34,15 +25,6 @@ public abstract class ConfPaths {
|
||||
/** Build number of the build for which the default config was first created (DefaultConfig.buildNumber), updated with each save. */
|
||||
public static final String CONFIGVERSION_SAVED = CONFIGVERSION + "saved";
|
||||
|
||||
/*
|
||||
* 888 ,e,
|
||||
* 888 e88 88e e88 888 e88 888 " 888 8e e88 888
|
||||
* 888 d888 888b d888 888 d888 888 888 888 88b d888 888
|
||||
* 888 ,d Y888 888P Y888 888 Y888 888 888 888 888 Y888 888
|
||||
* 888,d88 "88 88" "88 888 "88 888 888 888 888 "88 888
|
||||
* , 88P , 88P , 88P
|
||||
* "8",P" "8",P" "8",P"
|
||||
*/
|
||||
@GlobalConfig
|
||||
private static final String LOGGING = "logging.";
|
||||
public static final String LOGGING_ACTIVE = LOGGING + "active";
|
||||
@ -61,13 +43,6 @@ public abstract class ConfPaths {
|
||||
public static final String LOGGING_BACKEND_INGAMECHAT_SUBSCRIPTIONS = LOGGING_BACKEND_INGAMECHAT + "subscriptions";
|
||||
public static final String LOGGING_BACKEND_INGAMECHAT_PREFIX = LOGGING_BACKEND_INGAMECHAT + "prefix";
|
||||
|
||||
/*
|
||||
* e e ,e, 888 888
|
||||
* d8b d8b " dP"Y e88'888 ,e e, 888 888 ,"Y88b 888 8e ,e e, e88 88e 8888 8888 dP"Y
|
||||
* e Y8b Y8b 888 C88b d888 '8 d88 88b 888 888 "8" 888 888 88b d88 88b d888 888b 8888 8888 C88b
|
||||
* d8b Y8b Y8b 888 Y88D Y888 , 888 , 888 888 ,ee 888 888 888 888 , Y888 888P Y888 888P Y88D
|
||||
* d888b Y8b Y8b 888 d,dP "88,e8' "YeeP" 888 888 "88 888 888 888 "YeeP" "88 88" "88 88" d,dP
|
||||
*/
|
||||
@GlobalConfig
|
||||
private static final String MISCELLANEOUS = "miscellaneous.";
|
||||
//public static final String MISCELLANEOUS_CHECKFORUPDATES = MISCELLANEOUS + "checkforupdates";
|
||||
@ -126,13 +101,6 @@ public abstract class ConfPaths {
|
||||
private static final String CHECKS = "checks.";
|
||||
/** Debug flag to debug all checks (!), individual sections debug flags override this, if present. */
|
||||
public static final String CHECKS_DEBUG = CHECKS + SUB_DEBUG;
|
||||
/*
|
||||
* 888 88b, 888 888 888 88b, 888
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 88P' 888,8, ,e e, ,"Y88b 888 ee
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 8K 888 " d88 88b "8" 888 888 P
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 88b, 888 888 , ,ee 888 888 b
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 88P' 888 "YeeP" "88 888 888 8b
|
||||
*/
|
||||
public static final String BLOCKBREAK = CHECKS + "blockbreak.";
|
||||
|
||||
public static final String BLOCKBREAK_DEBUG = BLOCKBREAK + "debug";
|
||||
@ -187,13 +155,6 @@ public abstract class ConfPaths {
|
||||
public static final String BLOCKBREAK_WRONGBLOCK_LEVEL = BLOCKBREAK_WRONGBLOCK + "level";
|
||||
public static final String BLOCKBREAK_WRONGBLOCK_ACTIONS = BLOCKBREAK_WRONGBLOCK + "actions";
|
||||
|
||||
/*
|
||||
* 888 88b, 888 888 888 d8 d8
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 888 8e d88 ,e e, 888,8, ,"Y88b e88'888 d88
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 888 88b d88888 d88 88b 888 " "8" 888 d888 '8 d88888
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 888 888 888 888 , 888 ,ee 888 Y888 , 888
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 888 888 888 "YeeP" 888 "88 888 "88,e8' 888
|
||||
*/
|
||||
public static final String BLOCKINTERACT = CHECKS + "blockinteract.";
|
||||
|
||||
private static final String BLOCKINTERACT_DIRECTION = BLOCKINTERACT + "direction.";
|
||||
@ -250,13 +211,6 @@ public abstract class ConfPaths {
|
||||
public static final String BLOCKPLACE_SPEED_INTERVAL = BLOCKPLACE_SPEED + "interval";
|
||||
public static final String BLOCKPLACE_SPEED_ACTIONS = BLOCKPLACE_SPEED + "actions";
|
||||
|
||||
/*
|
||||
* e88'Y88 888 d8
|
||||
* d888 'Y 888 ee ,"Y88b d88
|
||||
* C8888 888 88b "8" 888 d88888
|
||||
* Y888 ,d 888 888 ,ee 888 888
|
||||
* "88,d88 888 888 "88 888 888
|
||||
*/
|
||||
public static final String CHAT = CHECKS + "chat.";
|
||||
|
||||
private static final String CHAT_CAPTCHA = CHAT + "captcha.";
|
||||
@ -416,15 +370,6 @@ public abstract class ConfPaths {
|
||||
public static final String COMBINED_YAWRATE_PENALTY_MIN = COMBINED_YAWRATE_PENALTY + "minimum";
|
||||
public static final String COMBINED_YAWRATE_PENALTY_MAX = COMBINED_YAWRATE_PENALTY + "maximum";
|
||||
|
||||
/*
|
||||
* 888'Y88 ,e, 888 d8
|
||||
* 888 ,'Y " e88 888 888 ee d88
|
||||
* 888C8 888 d888 888 888 88b d88888
|
||||
* 888 " 888 Y888 888 888 888 888
|
||||
* 888 888 "88 888 888 888 888
|
||||
* , 88P
|
||||
* "8",P"
|
||||
*/
|
||||
public static final String FIGHT = CHECKS + "fight.";
|
||||
|
||||
public static final String FIGHT_CANCELDEAD = FIGHT + "canceldead";
|
||||
@ -500,15 +445,6 @@ public abstract class ConfPaths {
|
||||
private static final String FIGHT_YAWRATE = FIGHT + "yawrate.";
|
||||
public static final String FIGHT_YAWRATE_CHECK = FIGHT_YAWRATE + "active";
|
||||
|
||||
/*
|
||||
* 888 d8
|
||||
* 888 888 8e Y8b Y888P ,e e, 888 8e d88 e88 88e 888,8, Y8b Y888P
|
||||
* 888 888 88b Y8b Y8P d88 88b 888 88b d88888 d888 888b 888 " Y8b Y8P
|
||||
* 888 888 888 Y8b " 888 , 888 888 888 Y888 888P 888 Y8b Y
|
||||
* 888 888 888 Y8P "YeeP" 888 888 888 "88 88" 888 888
|
||||
* 888
|
||||
* 888
|
||||
*/
|
||||
public static final String INVENTORY = CHECKS + "inventory.";
|
||||
|
||||
private static final String INVENTORY_DROP = INVENTORY + "drop.";
|
||||
@ -552,15 +488,6 @@ public abstract class ConfPaths {
|
||||
public static final String INVENTORY_OPEN_CLOSE = INVENTORY_OPEN + "close";
|
||||
public static final String INVENTORY_OPEN_CANCELOTHER = INVENTORY_OPEN + "cancelother";
|
||||
|
||||
/*
|
||||
* e e ,e,
|
||||
* d8b d8b e88 88e Y8b Y888P " 888 8e e88 888
|
||||
* e Y8b Y8b d888 888b Y8b Y8P 888 888 88b d888 888
|
||||
* d8b Y8b Y8b Y888 888P Y8b " 888 888 888 Y888 888
|
||||
* d888b Y8b Y8b "88 88" Y8P 888 888 888 "88 888
|
||||
* , 88P
|
||||
* "8",P"
|
||||
*/
|
||||
public static final String MOVING = CHECKS + "moving.";
|
||||
|
||||
private static final String MOVING_CREATIVEFLY = MOVING + "creativefly.";
|
||||
@ -645,15 +572,6 @@ public abstract class ConfPaths {
|
||||
public static final String MOVING_VEHICLES_ENFORCELOCATION = MOVING_VEHICLES + "enforcelocation";
|
||||
public static final String MOVING_VEHICLES_PREVENTDESTROYOWN = MOVING_VEHICLES + "preventdestroyown";
|
||||
|
||||
/*
|
||||
* dP"8 d8 ,e,
|
||||
* C8b Y d88 888,8, " 888 8e e88 888 dP"Y
|
||||
* Y8b d88888 888 " 888 888 88b d888 888 C88b
|
||||
* b Y8D 888 888 888 888 888 Y888 888 Y88D
|
||||
* 8edP 888 888 888 888 888 "88 888 d,dP
|
||||
* , 88P
|
||||
* "8",P"
|
||||
*/
|
||||
public static final String STRINGS = "strings";
|
||||
|
||||
// Compatibility section (possibly temporary).
|
||||
|
@ -5,16 +5,6 @@ import org.bukkit.configuration.MemorySection;
|
||||
import fr.neatmonster.nocheatplus.actions.ActionList;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM .8888b oo MM""""""""`M oo dP
|
||||
* M' .mmm. `M 88 " MM mmmmmmmM 88
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b. M' MMMM dP 88 .d8888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 88 88' `88 MM MMMMMMMM 88 88 88ooood8
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88. .88 MM MMMMMMMM 88 88 88. ...
|
||||
* MM. .dM `88888P' dP dP dP dP `8888P88 MM MMMMMMMM dP dP `88888P'
|
||||
* MMMMMMMMMMM .88 MMMMMMMMMMMM
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* A special configuration class created to handle the loading/saving of actions lists. This is for normal use with the plugin.
|
||||
*/
|
||||
|
@ -12,16 +12,6 @@ import org.bukkit.plugin.Plugin;
|
||||
import fr.neatmonster.nocheatplus.actions.ActionFactory;
|
||||
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||
|
||||
/*
|
||||
* MM'""""'YMM .8888b oo M"""""`'"""`YM
|
||||
* M' .mmm. `M 88 " M mm. mm. M
|
||||
* M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b. M MMM MMM M .d8888b. 88d888b. .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88' `88 88' `88 88 88 88' `88 M MMM MMM M 88' `88 88' `88 88' `88 88' `88 88ooood8 88' `88
|
||||
* M. `MMM' .M 88. .88 88 88 88 88 88. .88 M MMM MMM M 88. .88 88 88 88. .88 88. .88 88. ... 88
|
||||
* MM. .dM `88888P' dP dP dP dP `8888P88 M MMM MMM M `88888P8 dP dP `88888P8 `8888P88 `88888P' dP
|
||||
* MMMMMMMMMMM .88 MMMMMMMMMMMMMM .88
|
||||
* d8888P d8888P
|
||||
*/
|
||||
/**
|
||||
* Central location for everything that's described in the configuration file(s).<br>
|
||||
* The synchronized methods are to ensure that changing the configurations won't lead to trouble for the asynchronous checks.
|
||||
|
@ -6,16 +6,6 @@ import java.util.LinkedList;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
/*
|
||||
* M""""""'YMM .8888b dP dP MM'""""'YMM .8888b oo
|
||||
* M mmmm. `M 88 " 88 88 M' .mmm. `M 88 "
|
||||
* M MMMMM M .d8888b. 88aaa .d8888b. dP dP 88 d8888P M MMMMMooM .d8888b. 88d888b. 88aaa dP .d8888b.
|
||||
* M MMMMM M 88ooood8 88 88' `88 88 88 88 88 M MMMMMMMM 88' `88 88' `88 88 88 88' `88
|
||||
* M MMMM' .M 88. ... 88 88. .88 88. .88 88 88 M. `MMM' .M 88. .88 88 88 88 88 88. .88
|
||||
* M .MM `88888P' dP `88888P8 `88888P' dP dP MM. .dM `88888P' dP dP dP dP `8888P88
|
||||
* MMMMMMMMMMM MMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* These are the default settings for NoCheatPlus. They will be used in addition to/in replacement of configurations
|
||||
* given in the configFactory.yml file.
|
||||
@ -44,16 +34,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.CONFIGVERSION_NOTIFY, true);
|
||||
// not set(ConfPaths.CONFIGVERSION_CREATED, -1);
|
||||
// not set(ConfPaths.CONFIGVERSION_SAVED, -1);
|
||||
|
||||
/*
|
||||
* 888 ,e,
|
||||
* 888 e88 88e e88 888 e88 888 " 888 8e e88 888
|
||||
* 888 d888 888b d888 888 d888 888 888 888 88b d888 888
|
||||
* 888 ,d Y888 888P Y888 888 Y888 888 888 888 888 Y888 888
|
||||
* 888,d88 "88 88" "88 888 "88 888 888 888 888 "88 888
|
||||
* , 88P , 88P , 88P
|
||||
* "8",P" "8",P" "8",P"
|
||||
*/
|
||||
set(ConfPaths.LOGGING_ACTIVE, true);
|
||||
set(ConfPaths.LOGGING_DEBUG, false);
|
||||
set(ConfPaths.LOGGING_BACKEND_CONSOLE_ACTIVE, true);
|
||||
@ -65,13 +45,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.LOGGING_BACKEND_INGAMECHAT_PREFIX, "&cNCP: &f");
|
||||
set(ConfPaths.LOGGING_BACKEND_INGAMECHAT_SUBSCRIPTIONS, false);
|
||||
|
||||
/*
|
||||
* e e ,e, 888 888
|
||||
* d8b d8b " dP"Y e88'888 ,e e, 888 888 ,"Y88b 888 8e ,e e, e88 88e 8888 8888 dP"Y
|
||||
* e Y8b Y8b 888 C88b d888 '8 d88 88b 888 888 "8" 888 888 88b d88 88b d888 888b 8888 8888 C88b
|
||||
* d8b Y8b Y8b 888 Y88D Y888 , 888 , 888 888 ,ee 888 888 888 888 , Y888 888P Y888 888P Y88D
|
||||
* d888b Y8b Y8b 888 d,dP "88,e8' "YeeP" 888 888 "88 888 888 888 "YeeP" "88 88" "88 88" d,dP
|
||||
*/
|
||||
// set(ConfPaths.MISCELLANEOUS_CHECKFORUPDATES, true);
|
||||
// set(ConfPaths.MISCELLANEOUS_REPORTTOMETRICS, true);
|
||||
|
||||
@ -103,13 +76,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.PROTECT_CLIENTS_MOTD_ACTIVE, true);
|
||||
set(ConfPaths.PROTECT_CLIENTS_MOTD_ALLOWALL, false);
|
||||
|
||||
/*
|
||||
* 888 88b, 888 888 888 88b, 888
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 88P' 888,8, ,e e, ,"Y88b 888 ee
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 8K 888 " d88 88b "8" 888 888 P
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 88b, 888 888 , ,ee 888 888 b
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 88P' 888 "YeeP" "88 888 888 8b
|
||||
*/
|
||||
set(ConfPaths.BLOCKBREAK_DIRECTION_CHECK, true);
|
||||
set(ConfPaths.BLOCKBREAK_DIRECTION_ACTIONS, "cancel vl>10 log:bdirection:0:5:if cancel");
|
||||
|
||||
@ -137,13 +103,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.BLOCKBREAK_WRONGBLOCK_LEVEL, 10);
|
||||
set(ConfPaths.BLOCKBREAK_WRONGBLOCK_ACTIONS, "cancel vl>10 log:bwrong:0:5:if cancel vl>30 log:bwrong:0:5:cif cancel cmd:kickwb");
|
||||
|
||||
/*
|
||||
* 888 88b, 888 888 888 d8 d8
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 888 8e d88 ,e e, 888,8, ,"Y88b e88'888 d88
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 888 88b d88888 d88 88b 888 " "8" 888 d888 '8 d88888
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 888 888 888 888 , 888 ,ee 888 Y888 , 888
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 888 888 888 "YeeP" 888 "88 888 "88,e8' 888
|
||||
*/
|
||||
set(ConfPaths.BLOCKINTERACT_DIRECTION_CHECK, true);
|
||||
set(ConfPaths.BLOCKINTERACT_DIRECTION_ACTIONS, "cancel vl>10 log:bdirection:0:3:if cancel");
|
||||
|
||||
@ -184,14 +143,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.BLOCKPLACE_SPEED_INTERVAL, 45L);
|
||||
set(ConfPaths.BLOCKPLACE_SPEED_ACTIONS,
|
||||
"cancel vl>150 log:bpspeed:3:5:if cancel vl>1000 log:bpspeed:3:5:cif cancel");
|
||||
|
||||
/*
|
||||
* e88'Y88 888 d8
|
||||
* d888 'Y 888 ee ,"Y88b d88
|
||||
* C8888 888 88b "8" 888 d88888
|
||||
* Y888 ,d 888 888 ,ee 888 888
|
||||
* "88,d88 888 888 "88 888 888
|
||||
*/
|
||||
|
||||
set(ConfPaths.CHAT_COLOR_CHECK, true);
|
||||
set(ConfPaths.CHAT_COLOR_ACTIONS, "log:color:0:1:if cancel");
|
||||
@ -358,15 +309,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.FIGHT_SPEED_SHORTTERM_TICKS, 7);
|
||||
set(ConfPaths.FIGHT_SPEED_SHORTTERM_LIMIT, 6);
|
||||
|
||||
/*
|
||||
* 888 d8
|
||||
* 888 888 8e Y8b Y888P ,e e, 888 8e d88 e88 88e 888,8, Y8b Y888P
|
||||
* 888 888 88b Y8b Y8P d88 88b 888 88b d88888 d888 888b 888 " Y8b Y8P
|
||||
* 888 888 888 Y8b " 888 , 888 888 888 Y888 888P 888 Y8b Y
|
||||
* 888 888 888 Y8P "YeeP" 888 888 888 "88 88" 888 888
|
||||
* 888
|
||||
* 888
|
||||
*/
|
||||
set(ConfPaths.INVENTORY_DROP_CHECK, true);
|
||||
set(ConfPaths.INVENTORY_DROP_LIMIT, 100);
|
||||
set(ConfPaths.INVENTORY_DROP_TIMEFRAME, 20L);
|
||||
@ -468,15 +410,6 @@ public class DefaultConfig extends ConfigFile {
|
||||
set(ConfPaths.MOVING_ASSUMESPRINT, false);
|
||||
set(ConfPaths.MOVING_SPEEDGRACE, 4.0);
|
||||
|
||||
/*
|
||||
* dP"8 d8 ,e,
|
||||
* C8b Y d88 888,8, " 888 8e e88 888 dP"Y
|
||||
* Y8b d88888 888 " 888 888 88b d888 888 C88b
|
||||
* b Y8D 888 888 888 888 888 Y888 888 Y88D
|
||||
* 8edP 888 888 888 888 888 "88 888 d,dP
|
||||
* , 88P
|
||||
* "8",P"
|
||||
*/
|
||||
// TODO: An extra file might suit these.
|
||||
final String start = "[player] failed [check]: ";
|
||||
final String end = ". VL [violations].";
|
||||
|
@ -9,15 +9,6 @@ import java.util.Set;
|
||||
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
|
||||
/*
|
||||
* MMP"""""""MM MM"""""""`YM M""M M""MMMMM""M dP oo dP
|
||||
* M' .mmmm MM MM mmmmm M M M M MMMMM M 88 88
|
||||
* M `M M' .M M M M MMMMM M d8888P dP 88 .d8888b.
|
||||
* M MMMMM MM MM MMMMMMMM M M M MMMMM M 88 88 88 Y8ooooo.
|
||||
* M MMMMM MM MM MMMMMMMM M M M `MMM' M 88 88 88 88
|
||||
* M MMMMM MM MM MMMMMMMM M M Mb dM dP dP dP `88888P'
|
||||
* MMMMMMMMMMMM MMMMMMMMMMMM MMMM MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* A class providing utilities to the NoCheatPlus API.
|
||||
*
|
||||
|
@ -5,23 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.access.IViolationInfo;
|
||||
|
||||
/*
|
||||
* MMP"""""""MM dP dP dP
|
||||
* M' .mmmm MM 88 88 88
|
||||
* M `M 88d888b. .d8888b. d8888P 88d888b. .d8888b. .d8888b. d8888P
|
||||
* M MMMMM MM 88' `88 Y8ooooo. 88 88' `88 88' `88 88' `"" 88
|
||||
* M MMMMM MM 88. .88 88 88 88 88. .88 88. ... 88
|
||||
* M MMMMM MM 88Y8888' `88888P' dP dP `88888P8 `88888P' dP
|
||||
* MMMMMMMMMMMM
|
||||
*
|
||||
* M"""""""`YM MM'""""'YMM MM"""""""`YM M""MMMMM""MM dP
|
||||
* M mmmm. M M' .mmm. `M MM mmmmm M M MMMMM MM 88
|
||||
* M MMMMM M M MMMMMooM M' .M M `M .d8888b. .d8888b. 88 .dP
|
||||
* M MMMMM M M MMMMMMMM MM MMMMMMMM M MMMMM MM 88' `88 88' `88 88888"
|
||||
* M MMMMM M M. `MMM' .M MM MMMMMMMM M MMMMM MM 88. .88 88. .88 88 `8b.
|
||||
* M MMMMM M MM. .dM MM MMMMMMMM M MMMMM MM `88888P' `88888P' dP `YP
|
||||
* MMMMMMMMMMM MMMMMMMMMMM MMMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Extend this class for maximum future compatibility.<br>
|
||||
* Especially the onCheckFailure method might get extended with check specific arguments, this class will provide
|
||||
|
@ -21,24 +21,6 @@ import fr.neatmonster.nocheatplus.components.NCPListener;
|
||||
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.StringUtil;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MM'""""'YMM MM"""""""`YM MM""""""""`M dP oo
|
||||
* M mmmm. M M' .mmm. `M MM mmmmm M MM mmmmmmmM 88
|
||||
* M MMMMM M M MMMMMooM M' .M M` MMMM dP. .dP .d8888b. 88d8b.d8b. 88d888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMM M M MMMMMMMM MM MMMMMMMM MM MMMMMMMM `8bd8' 88ooood8 88'`88'`88 88' `88 88 88 88' `88 88' `88
|
||||
* M MMMMM M M. `MMM' .M MM MMMMMMMM MM MMMMMMMM .d88b. 88. ... 88 88 88 88. .88 88 88 88. .88 88 88
|
||||
* M MMMMM M MM. .dM MM MMMMMMMM MM .M dP' `dP `88888P' dP dP dP 88Y888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM MMMMMMMMMMM MMMMMMMMMMMM MMMMMMMMMMMM 88
|
||||
* dP
|
||||
* M"""""`'"""`YM
|
||||
* M mm. mm. M
|
||||
* M MMM MMM M .d8888b. 88d888b. .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* M MMM MMM M 88' `88 88' `88 88' `88 88' `88 88ooood8 88' `88
|
||||
* M MMM MMM M 88. .88 88 88 88. .88 88. .88 88. ... 88
|
||||
* M MMM MMM M `88888P8 dP dP `88888P8 `8888P88 `88888P' dP
|
||||
* MMMMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* API for exempting players of checks, checked before calculations are done.
|
||||
*
|
||||
|
@ -5,15 +5,6 @@ import org.bukkit.entity.Player;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.access.IViolationInfo;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MM'""""'YMM MM"""""""`YM M""MMMMM""MM dP
|
||||
* M mmmm. M M' .mmm. `M MM mmmmm M M MMMMM MM 88
|
||||
* M MMMMM M M MMMMMooM M' .M M `M .d8888b. .d8888b. 88 .dP
|
||||
* M MMMMM M M MMMMMMMM MM MMMMMMMM M MMMMM MM 88' `88 88' `88 88888"
|
||||
* M MMMMM M M. `MMM' .M MM MMMMMMMM M MMMMM MM 88. .88 88. .88 88 `8b.
|
||||
* M MMMMM M MM. .dM MM MMMMMMMM M MMMMM MM `88888P' `88888P' dP `YP
|
||||
* MMMMMMMMMMM MMMMMMMMMMM MMMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* Compatibility hooks have to implement this.<br>
|
||||
* NOTES:
|
||||
|
@ -18,24 +18,6 @@ import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
import fr.neatmonster.nocheatplus.checks.access.IViolationInfo;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MM'""""'YMM MM"""""""`YM M""MMMMM""MM dP
|
||||
* M mmmm. M M' .mmm. `M MM mmmmm M M MMMMM MM 88
|
||||
* M MMMMM M M MMMMMooM M' .M M `M .d8888b. .d8888b. 88 .dP
|
||||
* M MMMMM M M MMMMMMMM MM MMMMMMMM M MMMMM MM 88' `88 88' `88 88888"
|
||||
* M MMMMM M M. `MMM' .M MM MMMMMMMM M MMMMM MM 88. .88 88. .88 88 `8b.
|
||||
* M MMMMM M MM. .dM MM MMMMMMMM M MMMMM MM `88888P' `88888P' dP `YP
|
||||
* MMMMMMMMMMM MMMMMMMMMMM MMMMMMMMMMMM MMMMMMMMMMMM
|
||||
*
|
||||
* M"""""`'"""`YM
|
||||
* M mm. mm. M
|
||||
* M MMM MMM M .d8888b. 88d888b. .d8888b. .d8888b. .d8888b. 88d888b.
|
||||
* M MMM MMM M 88' `88 88' `88 88' `88 88' `88 88ooood8 88' `88
|
||||
* M MMM MMM M 88. .88 88 88 88. .88 88. .88 88. ... 88
|
||||
* M MMM MMM M `88888P8 dP dP `88888P8 `8888P88 `88888P' dP
|
||||
* MMMMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* After-check-failure hook manager integrated into NoCheatPlus.
|
||||
*
|
||||
|
@ -1,27 +1,11 @@
|
||||
package fr.neatmonster.nocheatplus.permissions;
|
||||
|
||||
/*
|
||||
* MM"""""""`YM oo oo
|
||||
* MM mmmmm M
|
||||
* M' .M .d8888b. 88d888b. 88d8b.d8b. dP .d8888b. .d8888b. dP .d8888b. 88d888b. .d8888b.
|
||||
* MM MMMMMMMM 88ooood8 88' `88 88'`88'`88 88 Y8ooooo. Y8ooooo. 88 88' `88 88' `88 Y8ooooo.
|
||||
* MM MMMMMMMM 88. ... 88 88 88 88 88 88 88 88 88. .88 88 88 88
|
||||
* MM MMMMMMMM `88888P' dP dP dP dP dP `88888P' `88888P' dP `88888P' dP dP `88888P'
|
||||
* MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* The various permission nodes used by NoCheatPlus.
|
||||
*/
|
||||
public class Permissions {
|
||||
private static final String NOCHEATPLUS = "nocheatplus";
|
||||
|
||||
/*
|
||||
* e Y8b 888 ,e, ,e, d8 d8 ,e,
|
||||
* d8b Y8b e88 888 888 888 8e " 888 8e " dP"Y d88 888,8, ,"Y88b d88 " e88 88e 888 8e
|
||||
* d888b Y8b d888 888 888 888 88b 888 888 88b 888 C88b d88888 888 " "8" 888 d88888 888 d888 888b 888 88b
|
||||
* d888888888b Y888 888 888 888 888 888 888 888 888 Y88D 888 888 ,ee 888 888 888 Y888 888P 888 888
|
||||
* d8888888b Y8b "88 888 888 888 888 888 888 888 888 d,dP 888 888 "88 888 888 888 "88 88" 888 888
|
||||
*/
|
||||
private static final String ADMINISTRATION = NOCHEATPLUS + ".admin";
|
||||
// Debug permission, for player spam (not in plugin.yml, currently).
|
||||
public static final String ADMINISTRATION_DEBUG = ADMINISTRATION + ".debug";
|
||||
@ -64,13 +48,6 @@ public class Permissions {
|
||||
// Permissions for the individual checks.
|
||||
public static final String CHECKS = NOCHEATPLUS + ".checks";
|
||||
|
||||
/*
|
||||
* 888 88b, 888 888 888 88b, 888
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 88P' 888,8, ,e e, ,"Y88b 888 ee
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 8K 888 " d88 88b "8" 888 888 P
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 88b, 888 888 , ,ee 888 888 b
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 88P' 888 "YeeP" "88 888 888 8b
|
||||
*/
|
||||
public static final String BLOCKBREAK = CHECKS + ".blockbreak";
|
||||
public static final String BLOCKBREAK_BREAK = BLOCKBREAK + ".break";
|
||||
public static final String BLOCKBREAK_BREAK_LIQUID = BLOCKBREAK_BREAK + ".liquid";
|
||||
@ -81,26 +58,12 @@ public class Permissions {
|
||||
public static final String BLOCKBREAK_REACH = BLOCKBREAK + ".reach";
|
||||
public static final String BLOCKBREAK_WRONGBLOCK = BLOCKBREAK + ".wrongblock";
|
||||
|
||||
/*
|
||||
* 888 88b, 888 888 888 d8 d8
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 888 8e d88 ,e e, 888,8, ,"Y88b e88'888 d88
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 888 88b d88888 d88 88b 888 " "8" 888 d888 '8 d88888
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 888 888 888 888 , 888 ,ee 888 Y888 , 888
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 888 888 888 "YeeP" 888 "88 888 "88,e8' 888
|
||||
*/
|
||||
public static final String BLOCKINTERACT = CHECKS + ".blockinteract";
|
||||
public static final String BLOCKINTERACT_DIRECTION = BLOCKINTERACT + ".direction";
|
||||
public static final String BLOCKINTERACT_REACH = BLOCKINTERACT + ".reach";
|
||||
public static final String BLOCKINTERACT_SPEED = BLOCKINTERACT + ".speed";
|
||||
public static final String BLOCKINTERACT_VISIBLE = BLOCKINTERACT + ".visible";
|
||||
|
||||
/*
|
||||
* 888 88b, 888 888 888 88e 888
|
||||
* 888 88P' 888 e88 88e e88'888 888 ee 888 888D 888 ,"Y88b e88'888 ,e e,
|
||||
* 888 8K 888 d888 888b d888 '8 888 P 888 88" 888 "8" 888 d888 '8 d88 88b
|
||||
* 888 88b, 888 Y888 888P Y888 , 888 b 888 888 ,ee 888 Y888 , 888 ,
|
||||
* 888 88P' 888 "88 88" "88,e8' 888 8b 888 888 "88 888 "88,e8' "YeeP"
|
||||
*/
|
||||
public static final String BLOCKPLACE = CHECKS + ".blockplace";
|
||||
public static final String BLOCKPLACE_AGAINST = BLOCKPLACE + ".against";
|
||||
public static final String BLOCKPLACE_AGAINST_AIR = BLOCKPLACE_AGAINST + ".air";
|
||||
@ -113,13 +76,6 @@ public class Permissions {
|
||||
public static final String BLOCKPLACE_REACH = BLOCKPLACE + ".reach";
|
||||
public static final String BLOCKPLACE_SPEED = BLOCKPLACE + ".speed";
|
||||
|
||||
/*
|
||||
* e88'Y88 888 d8
|
||||
* d888 'Y 888 ee ,"Y88b d88
|
||||
* C8888 888 88b "8" 888 d88888
|
||||
* Y888 ,d 888 888 ,ee 888 888
|
||||
* "88,d88 888 888 "88 888 888
|
||||
*/
|
||||
public static final String CHAT = CHECKS + ".chat";
|
||||
public static final String CHAT_CAPTCHA = CHAT + ".captcha";
|
||||
public static final String CHAT_COLOR = CHAT + ".color";
|
||||
@ -128,24 +84,11 @@ public class Permissions {
|
||||
public static final String CHAT_RELOG = CHAT + ".relog";
|
||||
public static final String CHAT_TEXT = CHAT + ".text";
|
||||
|
||||
|
||||
/*
|
||||
* Combined !
|
||||
*/
|
||||
public static final String COMBINED = CHECKS + ".combined";
|
||||
public static final String COMBINED_BEDLEAVE = COMBINED + ".bedleave";
|
||||
public static final String COMBINED_IMPROBABLE = COMBINED + ".improbable";
|
||||
public static final String COMBINED_MUNCHHAUSEN = COMBINED + ".munchhausen";
|
||||
|
||||
/*
|
||||
* 888'Y88 ,e, 888 d8
|
||||
* 888 ,'Y " e88 888 888 ee d88
|
||||
* 888C8 888 d888 888 888 88b d88888
|
||||
* 888 " 888 Y888 888 888 888 888
|
||||
* 888 888 "88 888 888 888 888
|
||||
* , 88P
|
||||
* "8",P"
|
||||
*/
|
||||
public static final String FIGHT = CHECKS + ".fight";
|
||||
public static final String FIGHT_ANGLE = FIGHT + ".angle";
|
||||
public static final String FIGHT_CRITICAL = FIGHT + ".critical";
|
||||
@ -158,15 +101,6 @@ public class Permissions {
|
||||
public static final String FIGHT_SELFHIT = FIGHT + ".selfhit";
|
||||
public static final String FIGHT_SPEED = FIGHT + ".speed";
|
||||
|
||||
/*
|
||||
* 888 d8
|
||||
* 888 888 8e Y8b Y888P ,e e, 888 8e d88 e88 88e 888,8, Y8b Y888P
|
||||
* 888 888 88b Y8b Y8P d88 88b 888 88b d88888 d888 888b 888 " Y8b Y8P
|
||||
* 888 888 888 Y8b " 888 , 888 888 888 Y888 888P 888 Y8b Y
|
||||
* 888 888 888 Y8P "YeeP" 888 888 888 "88 88" 888 888
|
||||
* 888
|
||||
* 888
|
||||
*/
|
||||
public static final String INVENTORY = CHECKS + ".inventory";
|
||||
public static final String INVENTORY_DROP = INVENTORY + ".drop";
|
||||
public static final String INVENTORY_FASTCLICK = INVENTORY + ".fastclick";
|
||||
@ -176,15 +110,6 @@ public class Permissions {
|
||||
public static final String INVENTORY_ITEMS = INVENTORY + ".items";
|
||||
public static final String INVENTORY_OPEN = INVENTORY + ".open";
|
||||
|
||||
/*
|
||||
* e e ,e,
|
||||
* d8b d8b e88 88e Y8b Y888P " 888 8e e88 888
|
||||
* e Y8b Y8b d888 888b Y8b Y8P 888 888 88b d888 888
|
||||
* d8b Y8b Y8b Y888 888P Y8b " 888 888 888 Y888 888
|
||||
* d888b Y8b Y8b "88 88" Y8P 888 888 888 "88 888
|
||||
* , 88P
|
||||
* "8",P"
|
||||
*/
|
||||
public static final String MOVING = CHECKS + ".moving";
|
||||
public static final String MOVING_CREATIVEFLY = MOVING + ".creativefly";
|
||||
public static final String MOVING_MOREPACKETS = MOVING + ".morepackets";
|
||||
@ -198,13 +123,6 @@ public class Permissions {
|
||||
public static final String MOVING_SURVIVALFLY_SPRINTING = MOVING_SURVIVALFLY + ".sprinting";
|
||||
public static final String MOVING_SURVIVALFLY_STEP = MOVING_SURVIVALFLY + ".step";
|
||||
|
||||
/*
|
||||
* e e 888 ,e, dP,e, ,e, d8 ,e,
|
||||
* d8b d8b e88 88e e88 888 " 8b " " e88'888 ,"Y88b d88 " e88 88e 888 8e dP"Y
|
||||
* e Y8b Y8b d888 888b d888 888 888 888888 888 d888 '8 "8" 888 d88888 888 d888 888b 888 88b C88b
|
||||
* d8b Y8b Y8b Y888 888P Y888 888 888 888 888 Y888 , ,ee 888 888 888 Y888 888P 888 888 Y88D
|
||||
* d888b Y8b Y8b "88 88" "88 888 888 888 888 "88,e8' "88 888 888 888 "88 88" 888 888 d,dP
|
||||
*/
|
||||
private static final String MODS = NOCHEATPLUS + ".mods";
|
||||
|
||||
private static final String CJB = MODS + ".cjb";
|
||||
|
@ -65,10 +65,7 @@ public class DataManager implements Listener, INotifyReload, INeedConfig, Compon
|
||||
|
||||
protected static DataManager instance = null;
|
||||
|
||||
//////////////////
|
||||
// Not static.
|
||||
//////////////////
|
||||
|
||||
// Not static
|
||||
private int foundInconsistencies = 0;
|
||||
|
||||
/** PlayerData storage. */
|
||||
|
@ -7,24 +7,6 @@ import fr.neatmonster.nocheatplus.actions.Action;
|
||||
import fr.neatmonster.nocheatplus.actions.ActionList;
|
||||
import fr.neatmonster.nocheatplus.checks.ViolationData;
|
||||
|
||||
/*
|
||||
* MM""""""""`M dP oo
|
||||
* MM mmmmmmmM 88
|
||||
* M` MMMM dP. .dP .d8888b. .d8888b. dP dP d8888P dP .d8888b. 88d888b.
|
||||
* MM MMMMMMMM `8bd8' 88ooood8 88' `"" 88 88 88 88 88' `88 88' `88
|
||||
* MM MMMMMMMM .d88b. 88. ... 88. ... 88. .88 88 88 88. .88 88 88
|
||||
* MM .M dP' `dP `88888P' `88888P' `88888P' dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMMM
|
||||
|
||||
* M""MMMMM""MM oo dP
|
||||
* M MMMMM MM 88
|
||||
* M `M dP .d8888b. d8888P .d8888b. 88d888b. dP dP
|
||||
* M MMMMM MM 88 Y8ooooo. 88 88' `88 88' `88 88 88
|
||||
* M MMMMM MM 88 88 88 88. .88 88 88. .88
|
||||
* M MMMMM MM dP `88888P' dP `88888P' dP `8888P88
|
||||
* MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*/
|
||||
/**
|
||||
* Store amount of action executions for last 60 seconds for various actions.<br>
|
||||
* TODO: Once away from static access, could put this to generic (Action<D extends ActionData>).
|
||||
|
@ -445,10 +445,7 @@ public class BlockProperties {
|
||||
|
||||
private static void initBlocks(final MCAccess mcAccess, final WorldConfigProvider<?> worldConfigProvider) {
|
||||
Arrays.fill(blocks, null);
|
||||
///////////////////////////
|
||||
// Initalize block flags
|
||||
///////////////////////////
|
||||
|
||||
// Generic initialization.
|
||||
for (int i = 0; i <maxBlocks; i++){
|
||||
blockFlags[i] = 0;
|
||||
@ -599,10 +596,7 @@ public class BlockProperties {
|
||||
}){
|
||||
blockFlags[mat.getId()] |= F_GROUND_HEIGHT;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
// Set block break properties.
|
||||
////////////////////////////////
|
||||
// Instantly breakable.
|
||||
for (final Material mat : instantMat){
|
||||
blocks[mat.getId()] = instantType;
|
||||
|
@ -9,24 +9,6 @@ import org.bukkit.util.Vector;
|
||||
import fr.neatmonster.nocheatplus.compat.AlmostBoolean;
|
||||
import fr.neatmonster.nocheatplus.compat.MCAccess;
|
||||
|
||||
/*
|
||||
* MM"""""""`YM dP
|
||||
* MM mmmmm M 88
|
||||
* M' .M 88 .d8888b. dP dP .d8888b. 88d888b.
|
||||
* MM MMMMMMMM 88 88' `88 88 88 88ooood8 88' `88
|
||||
* MM MMMMMMMM 88 88. .88 88. .88 88. ... 88
|
||||
* MM MMMMMMMM dP `88888P8 `8888P88 `88888P' dP
|
||||
* MMMMMMMMMMMM .88
|
||||
* d8888P
|
||||
*
|
||||
* M""MMMMMMMM dP oo
|
||||
* M MMMMMMMM 88
|
||||
* M MMMMMMMM .d8888b. .d8888b. .d8888b. d8888P dP .d8888b. 88d888b.
|
||||
* M MMMMMMMM 88' `88 88' `"" 88' `88 88 88 88' `88 88' `88
|
||||
* M MMMMMMMM 88. .88 88. ... 88. .88 88 88 88. .88 88 88
|
||||
* M M `88888P' `88888P' `88888P8 dP dP `88888P' dP dP
|
||||
* MMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* An utility class used to know a lot of things for a player and a location
|
||||
* given.
|
||||
|
@ -93,11 +93,7 @@ public class TickTask implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Special static methods, usually not called from outside.
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Force executing actions.<br>
|
||||
* Note: Only call from the main thread!
|
||||
@ -138,11 +134,7 @@ public class TickTask implements Runnable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////
|
||||
// Public static access methods
|
||||
///////////////////////////////////
|
||||
|
||||
/**
|
||||
* Access method to request permission updates.<br>
|
||||
* NOTE: Thread safe.
|
||||
@ -375,10 +367,7 @@ public class TickTask implements Runnable {
|
||||
return locked;
|
||||
}
|
||||
|
||||
////////////////////////////////////////
|
||||
// Public methods for internal use.
|
||||
////////////////////////////////////////
|
||||
|
||||
public static int start(final Plugin plugin){
|
||||
cancel();
|
||||
taskId = Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new TickTask(), 1, 1);
|
||||
@ -432,10 +421,7 @@ public class TickTask implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
// Instance methods (meant private).
|
||||
//////////////////////////
|
||||
|
||||
/**
|
||||
*
|
||||
* Notify all listeners. A copy of the listeners under lock, then processed without lock. Theoretically listeners can get processed though they have already been unregistered.
|
||||
|
@ -83,15 +83,6 @@ import fr.neatmonster.nocheatplus.utilities.OnDemandTickListener;
|
||||
import fr.neatmonster.nocheatplus.utilities.ReflectionUtil;
|
||||
import fr.neatmonster.nocheatplus.utilities.TickTask;
|
||||
|
||||
/*
|
||||
* M"""""""`YM MM'""""'YMM dP dP MM"""""""`YM dP
|
||||
* M mmmm. M M' .mmm. `M 88 88 MM mmmmm M 88
|
||||
* M MMMMM M .d8888b. M MMMMMooM 88d888b. .d8888b. .d8888b. d8888P M' .M 88 dP dP .d8888b.
|
||||
* M MMMMM M 88' `88 M MMMMMMMM 88' `88 88ooood8 88' `88 88 MM MMMMMMMM 88 88 88 Y8ooooo.
|
||||
* M MMMMM M 88. .88 M. `MMM' .M 88 88 88. ... 88. .88 88 MM MMMMMMMM 88 88. .88 88
|
||||
* M MMMMM M `88888P' MM. .dM dP dP `88888P' `88888P8 dP MM MMMMMMMM dP `88888P' `88888P'
|
||||
* MMMMMMMMMMM MMMMMMMMMMM MMMMMMMMMMMM
|
||||
*/
|
||||
/**
|
||||
* This is the main class of NoCheatPlus. The commands, events listeners and tasks are registered here.
|
||||
*/
|
||||
@ -99,9 +90,7 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
||||
|
||||
private static final String MSG_NOTIFY_OFF = ChatColor.RED + "NCP: " + ChatColor.WHITE + "Notifications are turned " + ChatColor.RED + "OFF" + ChatColor.WHITE + ".";
|
||||
|
||||
//////////////////
|
||||
// Static API
|
||||
//////////////////
|
||||
|
||||
/**
|
||||
* Convenience method.
|
||||
@ -112,9 +101,7 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
||||
return NCPAPIProvider.getNoCheatPlusAPI();
|
||||
}
|
||||
|
||||
//////////////////
|
||||
// Not static.
|
||||
//////////////////
|
||||
|
||||
/** Names of players with a certain permission. */
|
||||
protected final NameSetPermState nameSetPerms = new NameSetPermState(Permissions.NOTIFY);
|
||||
@ -532,13 +519,6 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
||||
*/
|
||||
@Override
|
||||
public void onDisable() {
|
||||
/*
|
||||
* ____ _ _ _
|
||||
* | _ \(_)___ __ _| |__ | | ___
|
||||
* | | | | / __|/ _` | '_ \| |/ _ \
|
||||
* | |_| | \__ \ (_| | |_) | | __/
|
||||
* |____/|_|___/\__,_|_.__/|_|\___|
|
||||
*/
|
||||
|
||||
final boolean verbose = ConfigManager.getConfigFile().getBoolean(ConfPaths.LOGGING_DEBUG);
|
||||
|
||||
@ -694,13 +674,6 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
||||
*/
|
||||
@Override
|
||||
public void onEnable() {
|
||||
/*
|
||||
* _____ _ _
|
||||
* | ____|_ __ __ _| |__ | | ___
|
||||
* | _| | '_ \ / _` | '_ \| |/ _ \
|
||||
* | |___| | | | (_| | |_) | | __/
|
||||
* |_____|_| |_|\__,_|_.__/|_|\___|
|
||||
*/
|
||||
|
||||
// Reset TickTask (just in case).
|
||||
TickTask.setLocked(true);
|
||||
|
@ -21,10 +21,7 @@ public class DefaultComponentFactory {
|
||||
public Collection<Object> getAvailableComponentsOnEnable(){
|
||||
final List<Object> available = new LinkedList<Object>();
|
||||
|
||||
//////////////////////////////////////
|
||||
// Add components (try-catch).
|
||||
//////////////////////////////////////
|
||||
|
||||
// Check: inventory.fastconsume.
|
||||
try{
|
||||
FastConsume.testAvailability();
|
||||
|
@ -29,7 +29,6 @@ public class MCAccessFactory {
|
||||
private final String[] updateLocs = new String[]{
|
||||
"[NoCheatPlus] Check for updates at BukkitDev: http://dev.bukkit.org/server-mods/nocheatplus/",
|
||||
"[NoCheatPlus] Development builds: http://ci.ecocitycraft.com/job/NoCheatPlus/",
|
||||
// "[NoCheatPlus] Development builds: http://nocheatplus.org:8080/job/NoCheatPlus/",
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user