示例#1
0
 public void NotifyOfBreak(IServerPlayer byPlayer, int oldblockId, BlockPos pos)
 {
     if (byPlayer.PlayerUID == OwnerUID)
     {
         return;
     }
     LimitCheck();
     Breakins.Add(byPlayer.PlayerName + " broke or tried to break a block at " + pos.RelativeToSpawn(byPlayer.Entity.World) + " with the name of " + Api.World.GetBlock(oldblockId).Code);
     MarkDirty();
 }