import mods.randomtweaker.ftbultimine.IPlayer;
// 以下内容涉及事件, 不会事件慎入或查看 https://youyi580.gitbook.io/zentutorial/advanced/event-overview 的内容初步了解事件
import crafttweaker.event.BlockBreakEvent; // 方块破坏事件
events.onBlockBreak(function(event as BlockBreakEvent) {
if(!event.world.remote && event.player.isAllowFTBUltimine()) { // 判断是否在服务端内且玩家能否连锁
event.player.setAllowFTBUltimine(false); // 阻止玩家连锁
// 值得注意的是, 调用此方法后, 效果是永久的, 除非再次调用并传入 true, 否则该玩家将永远无法连锁
}
});