mirror of
https://github.com/asofold/CompatNoCheatPlus.git
synced 2024-11-18 11:16:23 +01:00
ADjust to NCP build 82 + .
This commit is contained in:
parent
043f2aadb6
commit
6ce5d55618
@ -41,6 +41,9 @@ add stats hook ?
|
||||
VERSION HISTORY
|
||||
---------------------------
|
||||
|
||||
(6.1.2)
|
||||
- (adapt) To NoCheatPlus build 82 and up.
|
||||
|
||||
(6.1.1)
|
||||
- (bugfix) Corrected name of the mcMMO hook for cncp: mcMMO(default).
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: CompatNoCheatPlus
|
||||
main: me.asofold.bpl.cncp.CompatNoCheatPlus
|
||||
version: 6.1.1
|
||||
version: 6.1.2
|
||||
loadbefore:
|
||||
- NoCheatPlus
|
||||
softdepend:
|
||||
|
@ -5,6 +5,7 @@ import java.util.Map;
|
||||
|
||||
import me.asofold.bpl.cncp.hooks.mcmmo.HookmcMMO.HookFacade;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
@ -94,6 +95,12 @@ public class HookFacadeImpl implements HookFacade, NCPHook {
|
||||
@Override
|
||||
public final void setPlayerBlockBreak(final Player player) {
|
||||
setPlayer(player, cancelChecksBlockBreak);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugin("CompatNoCheatPlus"), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
CheckType.removeData(player.getName(), CheckType.BLOCKBREAK_FASTBREAK);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user