ADjust to NCP build 82 + .

This commit is contained in:
asofold 2012-09-10 21:26:18 +02:00
parent 043f2aadb6
commit 6ce5d55618
3 changed files with 11 additions and 1 deletions

View File

@ -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).

View File

@ -1,6 +1,6 @@
name: CompatNoCheatPlus
main: me.asofold.bpl.cncp.CompatNoCheatPlus
version: 6.1.1
version: 6.1.2
loadbefore:
- NoCheatPlus
softdepend:

View File

@ -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);
}
});
}