Class NoCheatPlusCompatibility
- java.lang.Object
-
- com.github.crashdemons.playerheads.compatibility.plugins.CompatiblePlugin
-
- com.github.crashdemons.playerheads.compatibility.plugins.NoCheatPlusCompatibility
-
public class NoCheatPlusCompatibility extends CompatiblePlugin
Defines required operations performed with the NoCheatPlus plugin for compatibility reasons.- Author:
- crashdemons (crashenator at gmail.com)
-
-
Field Summary
-
Fields inherited from class com.github.crashdemons.playerheads.compatibility.plugins.CompatiblePlugin
config, parentPlugin
-
-
Constructor Summary
Constructors Constructor Description NoCheatPlusCompatibility(Plugin parentPlugin)
Create the NCP plugin-compatibility class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exemptFastbreak(Player player)
Adds an exemption for a user from fast-break checksboolean
isExemptFastbreak(Player player)
Checks if a user is exempt from fast-break checksvoid
unexemptFastbreak(Player player)
Removes exemptions for a user for fast-break checks-
Methods inherited from class com.github.crashdemons.playerheads.compatibility.plugins.CompatiblePlugin
get, getName, getPlugin, isPresent, isReady, reloadConfig
-
-
-
-
Constructor Detail
-
NoCheatPlusCompatibility
public NoCheatPlusCompatibility(Plugin parentPlugin)
Create the NCP plugin-compatibility class- Parameters:
parentPlugin
- the plugin requesting the compatibility support (provides logging/events)
-
-
Method Detail
-
isExemptFastbreak
public boolean isExemptFastbreak(Player player)
Checks if a user is exempt from fast-break checks- Parameters:
player
- the user- Returns:
- whether the user is exempt
-
exemptFastbreak
public void exemptFastbreak(Player player)
Adds an exemption for a user from fast-break checks- Parameters:
player
- the user
-
unexemptFastbreak
public void unexemptFastbreak(Player player)
Removes exemptions for a user for fast-break checks- Parameters:
player
- the user
-
-